[mapguide-users] SetFilter filter function exceptions with sdf

Jack Lee jack.lee at autodesk.com
Sun Oct 1 23:07:03 EDT 2006


Hi Zak,
 
The function names are case sensitive. You should change "max(FeatId)" to "Max(FeatId)".
 

	-----Original Message----- 
	From: Zak James [mailto:zak4ms at gmail.com] 
	Sent: Sun 10/1/2006 9:29 PM 
	To: users at mapguide.osgeo.org 
	Cc: 
	Subject: [mapguide-users] SetFilter filter function exceptions with sdf
	
	

	Hi, 

	Has anyone had any problems using the built in filter functions for 
	the OSGeo.SDF.3.1 provider via the Mapguide 1.0.1 api? 

	The capabilities show they are supported but I get the following 
	exception when trying to use them to filter a Select operation: 

	An exception occurred in FDO component. 
	Function not supported 
	- MgFeatureServiceHandler.ProcessOperation line 83 file 
	c:\build_tux_area\mgdev_opensource\server\src\services\feature\FeatureServiceHandler.cpp 
	- MgOpSelectFeaturesSpatial.Execute line 115 file 
	c:\build_tux_area\mgdev_opensource\server\src\services\feature\OpSelectFeaturesSpatial.cpp 
	- MgServerSelectFeatures.SelectFeatures line 217 file 
	c:\build_tux_area\mgdev_opensource\server\src\services\feature\ServerSelectFeatures.cpp 

	Hopefully I'm just doing something stupid. Here's the php code: 

	$queryOptions = new MgFeatureQueryOptions(); 
	$queryOptions->AddComputedProperty("MyMax", "max(FeatId)"); 
	$featureClass = $layer->GetFeatureClassName(); 
	$featureReader = $featureService->SelectFeatures($featureSourceId, 
	$featureClass, $queryOptions); 

	The featuresourceid points to a session feature source which 
	references a valid sdf file. I've also tried going the SelectAggregate 
	route and I've tried other functions listed in the sdf capabilities 
	xml with similar results. 

	zak 
	-- 
	Zak James 
	Applications and Software Development 
	DM Solutions Group Inc. 
	http://www.dmsolutions.ca 

	--------------------------------------------------------------------- 
	To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org 
	For additional commands, e-mail: users-help at mapguide.osgeo.org 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 5822 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapguide-users/attachments/20061001/3cc72738/attachment.bin


More information about the Mapguide-users mailing list