Assigns the links of a Bidirectional Network (BDN) to the points of the input layer based on the least cost/shortest distance to the input points. A CutOff distance/cost can be used (a single value for all points or different for each point based on the values in the attribute table of the input point layer).
Results - Network created with Cost = "Minutes" - No CutOff Cost used.
Results - Network created with Cost = "Minutes" - CutOff Cost = 10 minutes.
Parameters
Expression | Explanation |
---|---|
Function Name | PartitionNetwork |
<Network to Use> | A String - the full name of the Network file (.etn). |
<Input Points> | A String representing the input layer. Must be of Point type. |
<output dataset> | A String - the full name of the output layer. |
<snap tolerance> | A Double representing the snap tolerance(in the units of the spatial reference of the Network). |
{Input Barrier Points} | A String representing the input layer with barrier points. Must be of Point type. |
{Barriers Direction Field} | A String representing the name of the field in the Input Barrier Points that will indicate the direction in which the barrier defined by each point work . Must be of String type. |
{CutOff Cost} | A Double representing the CutOff Costs in the units of the Network costs. |
{CutOff Field} | A String representing the Name of the field to be used to sort the points of the Input Point layer to establish the sequence in which they will be visited. |
{Allow Overlaps} | A Boolean. |
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, "PartitionNetwork", "Network to Use", "Input Points", "output dataset","snap tolerance", "Input Barrier Points", "Barriers Direction Field","CutOff Cost", "CutOff Field" "Allow Overlaps"]) |
.NET using ETGWRun.exe | StartInfo.FileName = ETGWPath StartInfo.Arguments = "PartitionNetwork" "Network to Use" "Input Points" "output dataset" "snap tolerance" "Input Barrier Points" "Barriers Direction Field" "CutOff Cost" "CutOff Field" "Allow Overlaps" |
.NET using ETGWOutX.dll | PartitionNetwork(Network to Use,Input Points, output dataset, snap tolerance,Input Barrier Points, Barriers Direction Field CutOff Cost, CutOff Field,Allow Overlaps) |
ArcPy | arcpy.PartitionNetwork(Network to Use,Input Points, output dataset, snap tolerance, Input Barrier Points, Barriers Direction Field, CutOff Cost, CutOff Field, Allow Overlaps) |
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.