ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Snapping network locations with Build Query

Available with Network Analyst license.

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.

  1. Open the Layer Properties dialog box for the network analysis layer.

    Learn about opening the network analysis Layer Properties dialog box

  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. Note:

    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.

    Tip:

    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.)

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal