Select features using query

This sample demonstrates 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

See How to use ArcGIS samples for help on running the sample.

  1. Run the SelectFeaturesUsingQuery application.
  2. Click Add Layer and browse to a feature layer to add to the map.
  3. Add text for the WHERE clause (for example, AREA > 1000).
  4. Click Select Features to select features based on the WHERE clause. The selected features are highlighted on the map.

If you installed the samples feature, you will find the files associated with this sample in <Your Developer Kit install location>\DeveloperKit10.4\Java\Samples\ArcObjects.

mapbean/ Main class.

Development licensing Deployment licensing
Engine Developer Kit Engine
ArcGIS for Desktop Basic
ArcGIS for Desktop Standard
ArcGIS for Desktop Advanced