Snapping network locations with Build Query

With the snapping settings of a network analysis layer, you can choose the source feature classes that are searched when finding network locations. You can also define a query to restrict the search to a subset of the features. This is useful, for example, when you want to locate only on highways, but not on local roads.

Steps:
  1. Open the Layer Properties dialog box for the network analysis layer.
  2. Click the Network Locations tab.

    Layer Properties dialog box of a network analysis layer

  3. Right-click the source feature you want to filter in the Snap To table under Name and click Build Query.

    The Query Builder dialog box opens. It functions like the Select by Attributes dialog box.

  4. Enter a WHERE clause in the text box at the bottom of the Query Builder dialog box.
  5. Click OK.

    The Query Builder dialog box closes.

  6. Click OK.

    Now network locations can only locate on the features returned by the query.

  7. NoteNote:

    Any network locations that are added or moved in this network analysis layer will respect the snapping settings. If you want network locations that were already part of the network analysis layer to respect the new settings, you can recalculate network location fields.

    TipTip:

    Although you can build a query to not locate on restricted source features, it is simpler to check Exclude restricted portions of the network, which is an option below the Snap To buttons on the Network Locations tab.

    Exclude restricted portions of the network causes network analysis objects to locate only on elements that don't have active prohibit-restrictions. (Active restrictions are those that are checked in the Analysis Settings tab.)

3/25/2015