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.

_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to