ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Increase Maximum Edges

Available with Network Analyst license.

  • Summary
  • Usage
  • Syntax
  • Code Sample
  • Environments
  • Licensing Information

Summary

Increases the maximum number of edges per turn in a turn feature class.

Usage

  • 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.

Syntax

IncreaseMaximumEdges_na (in_turn_features, maximum_edges)
ParameterExplanationData Type
in_turn_features

The turn feature class that is having its maximum number of edges raised.

Feature Layer
maximum_edges

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.

Long

Code Sample

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 Python 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 to 8.
# Requirements: Network Analyst Extension 

#Import system modules
import arcpy
from arcpy import env

#Check out the Network Analyst extension license
arcpy.CheckOutExtension("Network")

#Set environment settings
env.workspace = "C:/data/SanFrancisco.gdb/Transportation"

#Set local variables
turn_features = "RestrictedTurns"
max_edges = 8

#Increase the edges for turn features
arcpy.na.IncreaseMaximumEdges(turn_features, max_edges)

print("Script completed successfully.")

Environments

  • Current Workspace

Licensing Information

  • ArcGIS for Desktop Basic: Yes
  • ArcGIS for Desktop Standard: Yes
  • ArcGIS for Desktop Advanced: Yes

Related Topics

  • An overview of the Turn Feature Class toolset
Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal