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.

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.

  • Default—The extent will be based on the maximum extent of all participating inputs. This is the default.
  • Union of Inputs—The extent will be based on the maximum extent of all inputs.
  • Intersection of Inputs—The extent will be based on the minimum area common to all inputs.
  • Current Display Extent—The extent is equal to the visible display. The option is not available when there is no active map.
  • As Specified Below—The extent will be based on the minimum and maximum extent values specified.
  • Browse—The extent will be based on an existing dataset.
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 Python example (Python window)

Build the network topology for the HydroNetwork trace network.

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

Environments

This tool does not use any geoprocessing environments.

Licensing information

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

Related topics