ArcGIS Desktop

  • Documentation
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

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
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Densify

  • Summary
  • Illustration
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Adds vertices along line or polygon features. Also replaces curve segments (Bezier, circular arcs, and elliptical arcs) with line segments.

Illustration

The curve is densified into linear segments by either the Offset, Distance, or Angle
The curve is densified into linear segments by either the Offset, Distance, or Angle.

Usage

    Caution:

    This tool modifies the input data. See Tools with no outputs for more information and strategies to avoid undesired data changes.

  • Straight line segments are densified by the Distance parameter. Curve segments are simplified through densification by either the Distance , Maximum Deflection Angle, or Maximum Offset Deviation parameter.

  • Densification is done segment by segment.

  • Only one densification method can be selected each time Densify is executed.

  • The Spatial Reference of the data is very important to the result generated by this tool. Data should be densified in an appropriate coordinate system to maintain the correct shape of the features.

  • For each vertex of the original feature, including the start and end point, there will be a coincident vertex in the resulting feature.

  • When densifying by Maximum Offset Deviation, if the input geometry contains circular arcs, then an upper limit on the offset will be enforced such that the angle between two consecutive line segments in the output cannot exceed ten degrees. This angle can be exceeded if you densify by the Maximum Deflection Angle.

Syntax

Densify_edit (in_features, {densification_method}, {distance}, {max_deviation}, {max_angle})
ParameterExplanationData Type
in_features

The polygon or line feature class to be densified.

Feature Layer
densification_method
(Optional)

The method selected to handle feature densification.

  • DISTANCE —The tool will apply the Distance method to curves the same as it does to straight lines. This is the default.
  • OFFSET —The tool will apply the value of the Maximum Offset Deviation parameter (max_deviation in Python) to curves.
  • ANGLE —The tool will apply the value of the Maximum Deflection Angle parameter (max_angle in Python) to curves.
String
distance
(Optional)

The maximum linear distance between vertices. This distance will always be applied to line segments and to simplify curves. The default value is a function of the data's xy tolerance.

Linear unit
max_deviation
(Optional)

The maximum distance the output segment can be from the original. This parameter only affects curves. The default value is a function of the data's xy tolerance.

Linear unit
max_angle
(Optional)

The maximum angle that the output geometry can be from the input geometry. The valid range is from 0 to 90. The default value is 10. This parameter only affects curves.

Double

Code sample

Densify example 1 (Python window)

The following Python window script demonstrates how to use the Densify function in immediate mode.

import arcpy
arcpy.Densify_edit("C:/data.gdb/lines", "ANGLE","", "", "0.75")
Densify example 2 (stand-alone script)

The stand-alone script, below, shows the Densify function as part of a workflow which also utilizes the Snap editing tool.

# Name: Snap.py
# Description: Snap climate regions boundary to vegetation layer
#              boundary to ensure common boundary is coincident


# import system modules 
#
import arcpy

# Set environment settings
#
arcpy.env.workspace = "C:/data"

# Make backup copy of climate regions feature class, 
# since modification with the Editing tools below is permanent
#
climateBackup = "backups/climate.shp"
arcpy.CopyFeatures_management('climate.shp', climateBackup)

# Densify climate regions feature class to make sure there are enough
#vertices to match detail of vegetation layer when layers are snapped
#
arcpy.Densify_edit('climate.shp', "DISTANCE", "10 Feet") 

# Snap climate regions feature class to  vegetation layer vertices and edge
# first, snap climate region vertices to the nearest vegetation vertex within 30 Feet
# second, snap climate region vertices to the nearest vegetation edge within 20 Feet
#
snapEnv1 = ["Habitat_Analysis.gdb/vegtype", "VERTEX", "30 Feet"]    
snapEnv2 = ["Habitat_Analysis.gdb/vegtype", "EDGE",   "20 Feet"]       
arcpy.Snap_edit('climate.shp', [snapEnv1, snapEnv2])

Environments

  • Auto Commit
  • Current Workspace

Licensing information

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

Related topics

  • An overview of the Editing toolbox

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

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

About Esri

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