[mapguide-users] How to use count or max expression in fdo provider for sdf

Bruno Scott bscott at geomapgis.com
Mon Oct 1 10:50:46 EDT 2007



The GetExpressionCapabilities for sdf provider tells me that it supports

	Concat
	SpatialExtents
	Ceil
	Floor
	Lower
	Upper
	Sum
	Count
	Min
	Avg
	Max

But i can't make it to works

    MgFeatureService featureService =
(MgFeatureService)site.CreateService(MgServiceType.FeatureService);
    MgResourceIdentifier resId = new
MgResourceIdentifier("Library://Samples/Sheboygan/Data/Parcels.FeatureSource");
    MgFeatureQueryOptions queryOptions = new MgFeatureQueryOptions();

    //this one returns : Invalid property name: Count()
    //queryOptions.AddFeatureProperty("Count()");
 
    //this one returns : The function 'Count' is not supported by this
provider
    queryOptions.AddComputedProperty("Count", "Count()");

    MgFeatureReader dataReader = featureService.SelectFeatures(resId,
"SHP_Schema:Parcels", queryOptions);
-- 
View this message in context: http://www.nabble.com/How-to-use-count-or-max-expression-in-fdo-provider-for-sdf-tf4548772s16610.html#a12980584
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list