Hi Support,
We’ve been wondering how to use the FeatureSource.Filter string collection. When we fill it with a filter criteria like MY_FIELD IS NULL, the filter doesn’t seem to be applied to the feature. Is there a special syntax for elements added to this Filter property, or do we have to perform additional tasks when querying through a Feature?
Using the WhereClause property of a FeatureSource that implements a SQL datasource works however, we’d rather use the Filter property as this is a property of the FeatureSource base class, expecting the FeatureSource descendant to handle the Filter property itself.
Best regards,
Jeroen.
FeatureSource.Filter Usage?
Hi Jeroen,
About Filter please view the sample “Apply Quick Filter to FeatureSource” here: wiki.thinkgeo.com/wiki/Map_Suite_Wpf_Desktop_Edition_Layers_%26_FeatureSources_Samples
I think that’s will be helpful.
Regards,
Don
Don,
Is there a reference that describes the syntax and operation of filters on feature sources? Is the same syntax applicable to all types of feature source? Do the filters have to be applied explicitly or are they applied by virtue of their existence?
Thanks,
Rob
Hi Rob,
I am sorry we don’t have a documentation about filter in FeatureSource.
I asked our developer about that, it looks this API will be deleted in future.
If your goal is to add a filter for features so only show the features you want, please see my sample in last reply and choose FilterStyle.
Regards,
Don