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

Generalize

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

Summary

Simplifies the input features using a specified maximum offset tolerance. The output features will contain a subset of the original input vertices.

Illustration

The line is simplified within the boundary of the maximum allowable offset
The line is simplified within the boundary of the maximum allowable offset

Usage

    Caution:

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

  • This tool uses the same algorithm as the Simplify Line tool's point remove method (the Douglas-Peucker simplification algorithm). The Simplify Line tool provides more parameters and creates a new output, whereas this tool modifies the input feature class.

  • This tool generalizes features record by record. Sections of lines and polygon boundaries which were coincident between features may not be conincident after the tool is run.

  • Bézier curve, circular arc, and elliptic arc segments will be converted to a set of straight line segments.

  • This tool does not delete records or features. If the tolerance is larger than a polygon, the polygon will be reduced to three vertices.

Syntax

Generalize_edit (in_features, {tolerance})
ParameterExplanationData Type
in_features

The polygon or line features to be generalized.

Feature Layer
tolerance
(Optional)

The tolerance sets the maximum allowable offset, which will determine the degree of simplification. This value limits the distance the output geometry can differ from the input geometry. You can specify a preferred unit of measurement. The default is the feature unit.

Linear unit

Code Sample

Generalize Example (Python Window)

The following Python window script demonstrates how to use the Generalize function in immediate mode:

import arcpy
arcpy.env.workspace = "C:\data\data.gdb"
arcpy.Generalize_edit("zones", "10 Feet")
Generalize Example 2 (Stand-alone Script)

The stand-alone script below is an example of how to use the Generalize function in a workflow where features are first simplified and then buffered:

#Name: BufferZones.py
#Purpose: Simplify features using the Generalize tool and then Buffer them

#Import script modules
import arcpy

try:
    #Set the workspace
    arcpy.env.workspace = "C:/data/data.gdb"
    
    #Set local parameters
    inFeatures = "zones"
    gTolerance = "4 Feet"
    copFeatures = "zones_cp"
    bufDist = "50 Miles"
    bufOutput = "zones_buff"
    
    #Since Generalize permanently updates the input, first make a copy of the original FC
    arcpy.CopyFeatures_management (inFeatures, copFeatures)
    
    #Use the Generalize tool to simplify the Buffer input to shorten Buffer processing time
    arcpy.Generalize_edit(copFeatures, gTolerance)
    
    #Buffer the output
    arcpy.Buffer_analysis(copFeatures, bufOutput, bufDist)

except Exception as err:
    print(err)

Environments

  • Auto Commit
  • Current Workspace

Licensing Information

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

Related Topics

  • An overview of the Editing toolbox
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