Summary
Traces a geometric network, adding flags at each source feature, to find disconnected features. The number of disconnected features is displayed in the dialog box and features are logged in the Point or Line error features classes.
Usage
Specify your parameters, run the script, and review the results.
Syntax
arcpy.NOALIAS.DisconnectedFeaturesReport(geometric_network, source_feature_classes)
Parameter | Explanation | Data Type |
geometric_network | The geometric network used for tracing. | Geometric Network |
source_feature_classes | The feature classes that are network sources. By default, all features in the source classes are evaluated. Specify a SQL expression to reduce the number of sources to be evaluated to improve performance. For example, in a water network, these would be the classes that represent the water towers and tanks, pumps, and treatment plants. | Value Table |
Code sample
DisconnectedFeaturesReport example (Python window)
This tool traces a geometric network and flags disconnected features.
arcpy.gnsol.DisconnectedFeaturesReport(geometric_network=r'D:/Data/water.gdb/network/geometric_network', source_feature_classes='wSupply;wTreatment')
DisconnectedFeaturesReport (stand-alone script)
This tool traces a geometric network and flags disconnected features.
Name: DisconnectedFeaturesReport.py
# Description: This tool traces a geometric network, adding flags at each source feature to find disconnected features.
# The count of disconnected features are returned in the dialog and features are logged in Point and Line error
# features classes.
# Import required modules
import arcpy
toolbox = r'D:/Data/GeometricNetworkTools.pyt'
arcpy.ImportToolbox(toolbox)
# Local Variables
geometric_network = r'D:/Data/water.gdb/network/geometric_network'
source_feature_classes = 'wSupply;wTreatment'
arcpy.gnsol.DisconnectedFeaturesReport(geometric_network=geometric_network,
source_feature_classes=source_feature_classes)
Environments
This tool does not use any geoprocessing environments.
Licensing information
- Basic: No
- Standard: Yes
- Advanced: Yes