I've done this:
while (feature != null)
{
if ((feature.get_Value(feature.Fields.FindField("NAME")) != null) && (feature.get_Value(feature.Fields.FindField("NAME")).ToString() != " "))
{
itemList.Add(feature.get_Value(feature.Fields.FindField("NAME")).ToString());
}
feature = featureCursor.NextFeature();
}
Now I have a listBox with fields values. How can I get a feature back by its name?
The idea was:
- create a list with objects names,
- find feature on map, clicking by its name on list.
Features (objects) represent as points.