Attribute query selection


PurposeShows how to use a MapControl to display selected features in a feature layer. Features are selected programmatically based on a user-supplied where clause and the IQueryFilter interface.

How to use

If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Run the sample.
  2. Click on "AddLayer" and browse to a feature layer to add it to the map.
  3. Enter text for the where clause (for example, AREA > 1000).
  4. Click on "Select Features" to select features based on the where clause entered in the previous step. The selected features will be highlighted on the map.

AttributeQuery.h Header file
AttributeQuery.cpp Implementation file
MotifUtilities.h Header file
MotifUtilities.cpp Implementation file
Makefile.SolarisMotif Solaris Project Makefile
Makefile.LinuxMotif Linus Project Makefile
Download the Motif_CPP files

Download the files for all languages




Development licensing Deployment licensing
Engine Developer Kit Engine Runtime