Increases the maximum number of edges per turn in a turn feature class.
Once the maximum number of edges is increased, it cannot be decreased later. So only increase by the needed amount.
Increasing the number of edges by one adds three additional fields to the turn feature class. Take care not to exceed the maximum number of fields allowed by the database being used. For example, a personal geodatabase is limited to 255 fields.
IncreaseMaximumEdges_na (in_turn_features, maximum_edges)
The turn feature class that is having its maximum number of edges raised.
The new maximum number of edges in the input turn feature class. The value must be at least one higher than the existing maximum number of edges and cannot be greater than 50.
IncreaseMaximumEdges example 1 (Python window)
Execute the tool using all parameters.
turns = "C:/Data/SanFrancisco.gdb/Transportation/RestrictedTurns" arcpy.na.IncreaseMaximumEdges(turns, 8)
IncreaseMaximumEdges example 2 (stand-alone script)
The following Python script demonstrates how to use the IncreaseMaximumEdges tool in a stand-alone script.
# Name: IncreaseMaximumEdges_ex02.py # Description: Increase maximum edges for turn features from 2 to 5. # Requirements: Network Analyst Extension #Import system modules import arcpy from arcpy import env #Set environment settings env.workspace = "C:/data/SanFrancisco.gdb/Transportation" #Set local variables inTurnFeatures = "RestrictedTurns" maxEdges = 5 #Increase the edges for turn features arcpy.IncreaseMaximumEdges_na(inTurnFeatures, maxEdges) print("Script completed successfully.")
- ArcGIS Desktop Basic: Yes
- ArcGIS Desktop Standard: Yes
- ArcGIS Desktop Advanced: Yes