Skip to main content
Formatting etc
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

guys! 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

The idea was: a) create a list with objects names, b) find feature on map, clicking by its name on list. Features

  1. create a list with objects names,
  2. find feature on map, clicking by its name on list.

Features (objects) represent as points.

guys! 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: a) create a list with objects names, b) find feature on map, clicking by its name on list. Features (objects) represent as points.

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:

  1. create a list with objects names,
  2. find feature on map, clicking by its name on list.

Features (objects) represent as points.

Source Link

Get feature from list

guys! 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: a) create a list with objects names, b) find feature on map, clicking by its name on list. Features (objects) represent as points.