Utility Network Tracing with the ArcGIS Maps SDK for JavaScript and Python
This post explains the utility network concepts you need before writing trace code, then runs traces three ways: the ArcGIS Maps SDK for JavaScript 5.2 ( UtilityNetwork.trace() and the REST trace() function), the ArcGIS API for Python 2.4.4 ( UtilityNetworkManager ), and arcpy ( arcpy.un.Trace ). The TypeScript type-checks against @arcgis/core@5.2.9 , and the Python method signatures match the published packages and documentation. Core concepts A trace fails or returns nonsense when one of these concepts is misread, so it pays to get them straight first. Domain network. One commodity, such as electric distribution, gas or water. A utility network has one or more domain networks plus a structure network that holds poles, vaults and other supporting features. Each domain network has its own device, junction, line and subnetline classes. Each feature has an asset group and an asset type, which the rules refer to. Tier. A level in the network hierarchy inside a domain network, for...