Creates a utility network in an enterprise geodatabase feature dataset.
A utility network is created and a structure network, with its collection of feature classes, is added to the target feature dataset. The structure feature classes will be shared across all domain networks as they are created and configured for the utility network.
For more details about system requirements and supported databases, see Create a utility network..
The Input Feature Dataset and Service Territory Feature Class parameters must have the same spatial reference.
The Service Territory Feature Class parameter must exist in the input feature dataset and must be z- and m-enabled.
The DEFAULTS configuration keyword will be used for the output utility network.
The utility network cannot be owned by the following:
- Operating system-authenticated users
- Database or geodatabase administrator accounts
An active ArcGIS Enterprise portal must be set in the project, and the credentials used to sign in should have the minimum privileges of the Creator user type. This user account will be recorded in the utility network properties as the portal utility network owner.
CreateUtilityNetwork(in_feature_dataset, in_utility_network_name, service_territory_feature_class)
The enterprise geodatabase feature dataset in which the utility network and schema will be created.
The name of the utility network that will be created.
The existing polygon feature class that will be used to create the utility network's geographical extent. Utility network features cannot be created outside of this extent.
The feature class must be z- and m-enabled.
|Feature Layer; Feature Class|
The output utility network.
Create a utility network called MyNetwork in a feature dataset called EsriCoOp and a service territory layer called ServiceArea.
import arcpy arcpy.CreateUtilityNetwork_un(r"C:\MyProject\unownerconnection.sde\UNdatabase.UNOWNER.EsriCoOp", "MyNetwork", "ServiceArea")
- Basic: No
- Standard: Yes
- Advanced: Yes