Snapping points to lines

In situations where you have geometric networks or other combinations of points and lines, the spatial relationship between the points and lines must be aligned properly so they are correctly portrayed on the map for accurate network analysis. One example would be a utility network in which there are several fittings and meters (points) connected to distribution mains and service lines (line features). In the example below, not all the fittings, in yellow, are connected to the service lines, which are in red.

Snapping service fittings to distribution mains
Utility network with fittings that need to be snapped to a distribution main

Using the Snap Points and Split Lines tool, the points can be snapped to the ends of the service lines so they appear as follows. The points are snapped based on a specified tolerance.

Endpoints snapped to a line
Meters that have been snapped to the distribution main

Once you snap the points to lines and optionally split them, you can view a summary of the results. You can view the summary while you are using the tool by clicking Show Summary. This report contains the following information:

步骤:
  1. Start ArcMap.
    提示提示:

    If the ArcMap - Getting Started dialog box appears, you can open a new or existing map document. You can also check the Do not show this dialog box in the future check box and click Open.

  2. If necessary, load data in the map.
  3. On the main menu, click Customize > Toolbars > Production Editing.
  4. On the main menu, click Customize > Toolbars > Production Editing Advanced.
  5. Click the Production Start Editing button Production Start Editing on the Production Editing toolbar.
    注意注意:

    The Manage Features and Create Attributes, Update Attributes, or Metadata Attributes windows automatically appear when you start an edit session using the Production Start Editing tool.

    提示提示:

    If the Create Attributes, Update Attributes, or Metadata Attributes window does not appear when you start an edit session, click the Show/Hide Attributes button Show/Hide Attributes on the Manage Features window.

  6. Select the point features you want to snap to lines.
  7. Click the Snap Points and Split Lines button Snap Points And Split Lines on the Production Editing Advanced toolbar.

    The Snap Points And Split Lines dialog box appears. The Point to Snap and Lines to Snap To/Split lists are automatically populated with the layers loaded in the map. If you have points selected in the map, the check boxes for the layers are automatically checked in the Point to Snap list.

    Snap Points and Split Lines dialog box

    注意注意:

    If you select features in the map, the point feature classes are automatically selected as points to snap. However, line features are not automatically selected as lines to be split.

  8. Choose an option in the Features to Edit area.

    If you choose the Feature Layer option, then the tool is run on all the features in the feature classes that appear in the Point to Snap list.

    If you have features in the map selected, the Current Selection option is automatically chosen.

  9. Choose Snap Points Only in the Function area.
  10. Type a value for the snapping tolerance in the Snap Tolerance text box.
    The snapping tolerance can be specified in either page or linear units. Page units include inches, points, and centimeters, while linear units include nautical miles, meters, and kilometers.
  11. Click the Units drop-down arrow and choose the unit of measurement you want to use with the tolerance.
  12. If necessary, check the check boxes next to the layers that have points you want to snap in the Point to Snap list.
    注意注意:

    You can also click Select All or Clear All to check or uncheck all the layers in the list, respectively.

  13. Check the check boxes next to the line layers you want the points to snap to and/or be split in the Lines to Snap To/Split list.
    注意注意:

    You can also click Select All or Clear All to check or uncheck all the layers in the list, respectively.

  14. Click Apply if you do not want to commit the changes.
  15. Click OK.
    注意注意:

    If the line to snap to is a simple edge feature, and the snapped point is a geometric network junction feature, the Snap Points Only function does not split the simple edge feature.

    A message appears indicating that the process has completed successfully.

  16. Click OK.

    A summary of the results appears.

  17. Click Close.

10/2/2010