Hello All -
I'm looking for a way to find if an individual feature meets the conditions of a query filter. Kind of like
IEnumerable<Feature> features = myLayer.QueryAsync(QueryFilter)
except applied to an individual feature, so the ideal syntax would be:
bool matched = myFeature.Query(QueryFilter)
Of course the Runtime Feature object has no such method, but am wondering if there is another way to do this without performing a query on the full layer.
My use case is an application performs a spatial query to return a collection of features, some of which are valid and some not. I want to subsequently walk through the set feature by feature and identify the invalid ones. I'm aware that I could perform the spatial query twice, once with a where clause and one not and evaluate the difference -- which might be a fall-back option.