Summary
Sets the flow direction of features in a trace network.
Usage
The network topology must be enabled.
Flow direction can only be set for line features that participate in a trace network.
Flow direction can be specified at the feature level with digitized direction, against digitized direction, or as indeterminate. When a selection of features exists on the map, the flow direction will be set for only those features.
Syntax
SetFlowDirection(input_trace_network, in_edges, flow_direction)
Parameter | Explanation | Data Type |
input_trace_network | The trace network that contains the edges class on which the flow direction will be set. | Trace Network; Trace Network Layer |
in_edges [in_edges,...] | The polyline features that participate in the input trace network. | Feature Layer |
flow_direction | Specifies the flow direction of the edges.
| String |
Derived Output
Name | Explanation | Data Type |
updated_trace_network | The updated trace network. | Trace Network |
Code sample
Set the flow direction with digitized direction for the HydroLines edge class.
import arcpy
arcpy.SetFlowDirection_tn("C:\\MyProject\\NHD.gdb\\Hydro\\HydroNetwork",
"HydroLines", "WITH_DIGITIZED_DIRECTION")
Environments
This tool does not use any geoprocessing environments.
Licensing information
- Basic: No
- Standard: Yes
- Advanced: Yes