Creates from a polyline dataset a Single Derectional Network. This is a network in which travel is allowed only in one direction. The default direction is in the physical direction of the input polylines. This however might be changed for specific edges by the attributes in the "Direction" field in the attribute table of the input dataset.
Parameters
| Expression | Explanation |
|---|---|
| Function Name | BuildSingleDirectionalNetwork |
| <input dataset> | A String representing the input layer. Must be of Polyline type. |
| <output network> | A String - the full name of the output layer. |
| {Direction Field} | A String representing the Name of the field defining the Direction.
If not specified travel in the physical direction of the input polylines is allowed. Valid values:
|
| {From Level Field} | A String representing the Name of the field defining the elevation of the FROM Node of the polylines. If not specified a level of 1 will be set for the FROM Nodes of all edges. |
| {To Level Field} | A String representing the Name of the field defining the elevation of the TO Node of the polylines. If not specified a level of 1 will be set for the TO Nodes of all edges. |
| {Cost Field} | A String representing the Name of the field defining the cost of the edge. If not specified the cost for all edges will be the length of the corresponding polylines. |
ETGWPath used in the table below is the full path to ETGWRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETGeo Wizards\ETGWRun.exe")
| Language | Syntax |
|---|---|
| Python | subprocess.call([ETGWPath, "BuildSingleDirectionalNetwork", "input dataset", "output network", "Direction Field", "From Level Field" "To Level Field" "Cost Field"]) |
| .NET using ETGWRun.exe | StartInfo.FileName = ETGWPath StartInfo.Arguments = "BuildSingleDirectionalNetwork" "input dataset" "output network" "Direction Field" "From Level Field" "To Level Field" "Cost Field" |
| .NET using ETGWOutX.dll | BuildSingleDirectionalNetwork(input dataset, output network, Direction Field, From Level Field,To Level Field, Cost Field ) |
| ArcPy | arcpy.BuildSingleDirectionalNetwork(input dataset, output network, "Direction Field", "From Level Field", "To Level Field", "Cost Field") |
Notes:
<> - required parameter
{} - optional parameter
The argument separator for StartInfo.Arguments is space. If a string might contain a space, you need to double quote it.