Utility Network
A utility network. This is the central class for utility network schema information and tracing. UtilityNetwork follows the Loadable pattern. When it loads, it is populated with the utility network schema. This class provides methods to create UtilityElement objects for the UtilityNetwork.
Since
200.1.0
Constructors
Creates an UtilityNetwork using the URI to the feature service.
Creates a utility network with the URL to the feature service and a map. Creates a utility network associated with a particular service, using the same ArcGISFeatureTable objects in use by FeatureLayer objects within the map. This lets any UtilityElement or ArcGISFeature objects the UtilityNetwork creates or uses be associated with those existing tables and layers. Usually used when instantiating an UtilityNetwork object from a web map. This UtilityNetwork will be added to ArcGISMap.utilityNetworks.
Properties
The definition of the UtilityNetwork. This definition is NULL until the utility network is loaded.
The dirty area table of the UtilityNetwork. A read-only table that can be used to query features that represent either:
The Geodatabase that contains this UtilityNetwork. The Geodatabase that contains this UtilityNetwork and is also used by the GeodatabaseFeatureTable in UtilityNetworkDefinition.networkSources.
The name of the UtilityNetwork. This property is empty when UtilityNetwork is not loaded or UtilityNetwork is not retrieved from a Geodatabase.
The ServiceGeodatabase of the UtilityNetwork. The ServiceGeodatabase used by the ServiceFeatureTable in UtilityNetworkDefinition.networkSources.
The URI of the UtilityNetwork. This property is empty when UtilityNetwork is retrieved from a Geodatabase.
Functions
Adds an association between two utility elements in this utility network. Adding an association may also update the features that participate in the association.
Checks if the utility association can be added to the utility network. Checks that all of the following conditions are met:
Checks if a utility association with the specified type between the specified utility elements can be added to the utility network. Checks that all of the following conditions are met:
Checks whether associations can be deleted. Checks that all of the following conditions are met:
Creates an UtilityElement from a feature and an optional UtilityTerminal. If the optional UtilityTerminal is not supplied, and the feature's UtilityAssetType supports an UtilityTerminalConfiguration, a default UtilityTerminal will be assigned.
Creates an UtilityElement from an UtilityAssetType, a GlobalID, and an optional UtilityTerminal. If the optional UtilityTerminal is not supplied, and the feature's UtilityAssetType supports an UtilityTerminalConfiguration, a default UtilityTerminal will be assigned.
Deletes an association from this utility network. Deleting an association may also update the features that participate in the association.
Deletes a collection of associations from this utility network. Deleting these associations may also update the features that participate in these associations.
Returns a list of all UtilityAssociation objects (with their geometry) of type UtilityAssociationType present in the geodatabase for a given Envelope. Containment associations are not returned because no geometric relationship is defined between a container and its contents; consider using UtilityNetwork.getAssociations(UtilityElement, UtilityAssociationType) instead. The method does not return a complete picture of connectivity; features that are connected by geometric coincidence are not returned. Note that the list returned can contain associations that have not yet been validated and are therefore not yet included in the topological index.
Returns a list of all UtilityAssociation objects of type UtilityAssociationType present in the geodatabase for a given UtilityElement. The method does not return a complete picture of connectivity; features that are connected by geometric coincidence are not returned. Note that the list returned can contain associations that have not yet been validated and are therefore not yet included in the topological index.
Gets a collection of loaded ArcGISFeature objects that each correspond to one of a collection of UtilityElement objects.
Returns an UtilityNetworkState that represents the current state of the utility network. This state is unavailable if the utility network does not support the network state.
Returns a list of UtilityNamedTraceConfiguration from the utility network.
Begins a trace with the supplied UtilityTraceParameters. This method returns a task that supplies a collection of UtilityTraceResult objects when the utility network finishes the trace.
Returns a job that when started will validate the utility network topology within the provided extent. The preferred job execution type is GeoprocessingExecutionType.SynchronousExecute because it is faster to start up. For larger jobs, GeoprocessingExecutionType.SynchronousExecute can lead to timeouts, at which point GeoprocessingExecutionType.AsynchronousSubmit should be used.