Validate Network Topology (Trace Network)

Summary

Validates the network topology of a trace network. Validation of the network topology is necessary after edits have been made to network attributes or the geometry of features in the network.

Learn more about validating the network topology

Usage

  • Inconsistencies between feature spatial edits and the network topology are marked with dirty areas.

  • The network topology must be enabled.

  • Invalid geometries encountered during the validate process will be included as error features in the Point Error and Line Error feature classes grouped under the trace network layer in the Contents pane.

  • When working with an enterprise geodatabase, the input trace network must be from a trace network service.

  • When working with an enterprise geodatabase, only a single session can execute the validation operation at a time in the default version.

  • License:
    Organization members must be assigned a license for the ArcGIS Advanced Editing user type extension to use this tool in an enterprise deployment.

Parameters

LabelExplanationData Type
Input Trace Network

The trace network for which the network topology will be validated.

When working with an enterprise geodatabase, the input trace network must be from a trace network service.

Trace Network; Trace Network Layer
Extent
(Optional)

The geographical extent used to validate the network topology.

  • Current Display Extent Map View—The extent will be based on the active map or scene. This option is only available when there is an active map.
  • Draw Extent Square and Finish—The extent will be based on a rectangle drawn on the map or scene. This option will create a feature class in the project geodatabase and add a layer to the map. The feature class will have the same coordinate system as the map.
    Note:

    This option is not available in the Environments dialog box. It is only available from a tool parameter with an extent data type or from the Environments tab on a tool dialog box.

    Note:

    When the Enable and disable editing from the Edit tab editing option is checked, you must enable editing on the Edit ribbon tab to draw the extent.

  • Extent of a Layer Layer—The extent will be based on an active map layer. Use the drop-down list to choose an available layer or use the Extent of data in all layers option to get the combined extent of all active map layers, excluding the basemap. This option is only available when there is an active map with layers.

    Each map layer has the following options:

    • All Features Select All—The extent of all features in the layer.
    • Selected Features Area from Selected Features—The extent of the selected features in the layer.
    • Visible Features Extent Indicator—The extent of visible features in the layer.
      Note:

      The extents from the Selected Features Area from Selected Features and Visible Features Extent Indicator options are only available for feature layers.

  • Browse Browse—The extent will be based on an existing dataset.
  • Intersection of Inputs Intersect—The extent will be based on the minimum or intersecting extent of all inputs. If no inputs overlap, a null extent with all zeros will result.
  • Union of Inputs Union—The extent will be based on the maximum or combined extent of all inputs.
  • Clipboard Paste—The extent can be copied to and from the clipboard.
    • Copy Extent Copy—Copies the extent coordinates and coordinate system to the clipboard.
    • Paste Extent Paste—Pastes the extent coordinates and, optionally, the coordinate system from the clipboard. If the clipboard values do not include a coordinate system, the extent will use the map’s coordinate system.
    Note:

    The extent coordinates are copied to and pasted from the clipboard using the same formatting and order as the ArcPy Extent object: x-min, y-min, x-max, y-max, and the spatial reference.

  • Reset Extent Reset—The extent will be reset to the default value.
  • Manually entered coordinates—The coordinates must be numeric values and in the active map's coordinate system.
    Caution:

    The map may use different display units than the entered coordinates. The use of a cardinal direction (N, S, E, W) is not supported. Use a negative value sign for south and west coordinates.

Extent

Derived Output

LabelExplanationData Type
Validated Network Topology

The validated trace network.

Trace Network

arcpy.tn.ValidateNetworkTopology(in_trace_network, {extent})
NameExplanationData Type
in_trace_network

The trace network for which the network topology will be validated.

When working with an enterprise geodatabase, the input trace network must be from a trace network service.

Trace Network; Trace Network Layer
extent
(Optional)

The geographical area for which to build the trace network. This parameter is similar to the Extent geoprocessing environment.

  • MAXOF—The maximum extent of all inputs will be used.
  • MINOF—The minimum area common to all inputs will be used.
  • DISPLAY—The extent is equal to the visible display.
  • Layer name—The extent of the specified layer will be used.
  • Extent object—The extent of the specified object will be used.
  • Space delimited string of coordinates—The extent of the specified string will be used. Coordinates are expressed in the order of x-min, y-min, x-max, y-max.
Extent

Derived Output

NameExplanationData Type
out_trace_network

The validated trace network.

Trace Network

Code sample

ValidateNetworkTopology example (Python window)

Build the network topology for the HydroNetwork trace network.

import arcpy
arcpy.tn.ValidateNetworkTopology("C:\\MyTNProject\\NHD.gdb\\HydroNetwork")

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: No
  • Standard: Yes
  • Advanced: Yes

Related topics