2

I have a FeatureLayer, i used the method IFeatureLayer.Search() and the interface IQueryFilter to get a specific Feature, and i want to show only this Feature on the Map, how can i do that ?

1

You may use IFeatureLayerDefinition Interface.

Provides access to members that define a subset of the features from the underlying feature class.

Here is a general code example:

IFeatureLayerDefinition Example

  • Yeah it works thank you :D but i have another problem i can't zoom to this Feature any tips to do this ? – Guebli Mohamed Abdessamed Aug 13 '14 at 20:19
  • @GuebliMohamedAbdessamed I think you should research/ask that as a separate question. – PolyGeo Aug 13 '14 at 20:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.