Displaying a subset of features in a layer

When you specify a dataset that you want to draw as a map layer, you often only want to draw some of the features in the dataset. In these situations, you can define a query expression to select a subset of features for the layer display. This is referred to as a definition query.

For example:

If you only want to display and work with a subset of features in a layer, you can apply a definition query to a layer. You can type your own expression, or you can use Query Builder dialog box to help you set up your query expression.

Creating a definition query

  1. Right-click the layer in the table of contents and click Properties.
  2. Click the Definition Query tab on the Layer Properties dialog box.
  3. Enter a query expression.
    Entering a definition query to display a subset of features
    Query Builder lets you create an expression to identify the particular features in the layer you want to display.
    See Building a query expression for more information on how to build valid queries.
  4. Click OK.

Once you set the definition query, the map will redraw and display the subset of features that are selected using your query. The layer will continue to draw this feature subset each time the map is refreshed.

To add all the features back to the layer, simply delete the definition query.

Related Topics


8/2/2012