Querying an Open Layer File or Shapefile

Query an Open Layer file or Shapefile. Query results can be pushed into a DataCard, displayed on the map, saved to a list, or saved to a list and displayed on the map.

To query an Open Layer file or Shapefile

  1. Using the Data tab in the Ribbon, click Query ().

The Query dialog box appears.

  1. From the Find All drop-down list, scroll down to the dashed line that appears in the drop-down list. The Open Layer and Shapefiles in the default map directory appear below this dashed line.

A query can only pertain to one Open Layer file, or Shapefile.

To determine the location of an Open Layer or Shapefile that appears in the Find All drop-down list, hover the cursor over the file name in the drop-down list until a tooltip appears. Note that for Open Layer files, the file extension that appears in the tooltip indicates whether the file is a point, line, or region file.

The data fields that appear in the Attribute Selector pane, which appears below the Find All drop-down list, update to match the queryable fields found in the Open Layer file or Shapefile selected above.

  1. Using the Attribute Selector pane, click > to expand the Region group and select whether to constrain the query to only items that appear in a list, annotation, the current map extents, an old-style AccuMap region file with a .rgn file extension, or a user layer. All of the items that appear in a list can also be excluded from the query so that every item except the items appearing in a list are queried.
  2. Expand the Data Fields group and select a data field from the Open Layer file or Shapefile with which to query. Limit the data fields that appear in the pane by typing the adjacent letters that appear anywhere in the desired data field as depicted below.

The Criteria Selector pane to the right of the Attribute Selector pane is populated by controls with which you construct the query. The type of controls that appear in the Attribute Selector pane depend on the type of data that's stored in the data field that's selected in the Attribute Selector pane. For example, data fields that are associated with a calendar date include a mini calendar control. Data fields that include free-form text include a text box in which you type the adjacent letters that appear anywhere in the desired term. For definitions of the numerical operators (=, <=, etc.) see Related Topics below. For text strings you can type commas between multiple terms as an AND operand (where all terms must be found in order for a match to be made), or select the Convert commas to Or terms check box so that even a single term can produce a match.

A query string must contain a Region, which causes the query to search within a list, the current map extents, map annotation layers, or region files with a .rgn file extension, or user layers.

  1. Build the query string using the controls that appear in the Attribute Selector pane and then click one of the following:
  1. Click Run Query.

The Query Results for... dialog box appears.

  1. Click Set Map Symbol to display the Layer Style for dialog box where you specify the display properties to apply to the line, point, or region that matches the query on the map, and then click OK to return to the Query Results for dialog box. For details, see Changing Map Layer Display Properties in the Related Topics below.

  1. Select whether to redraw the map before displaying the query results on the map.
  2. Using the Query Results for... dialog box, select from the following options:

Related Topics Link IconRelated Topics