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

Simplify Line Or Polygon

Available with Advanced license.

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

Summary

Simplifies a line or a polygon boundary by removing small fluctuations or extraneous bends from it while preserving its essential shape.

Learn more about how Simplify Line Or Polygon works

Illustration

Simplify Line or Polygon illustration

Usage

  • If the input coverage already contains intersecting lines, or if you want a quick result and don't care about topological errors in the output coverage, use the default option, which is not to Check for topological errors. Any topological errors introduced by the process will not be checked and corrected. If the input coverage contains intersecting lines, and you choose to Check for topological errors, it will fail at the input data validation, and the program will terminate with a message: "Intersecting lines are found in in_cover. The program is terminated".

  • If the input coverage contains no intersecting lines, check the Check for topological errors option to find and avoid errors generated by the simplification process. If any topological errors are found, the involved arcs will be regeneralized using a reduced tolerance. The result will be checked for topological errors again. The process iterates until no more errors are found. With this option, the program will run much longer than with the default option.

  • Unless there is no input_coverage.AAT, the output_coverage.AAT will contain a new item, TOLFLAG, which stores the tolerance in decimal numbers used for each arc. Tolerances smaller than the Simplification Tolerance indicate arcs that are undersimplified to avoid topological errors.

  • If polygon topology exists for the input coverage, it is not preserved in the output coverage. The coverage PAT, however, is preserved. Build must be used to re-create polygon topology. If labels exit, they will be preserved. If a label falls outside the polygon boundary as the boundary is simplified, it will be moved just inside the nearest line segment of the polygon boundary.

  • If regions exist in the Input Coverage, regions in the Output Coverage will be preliminary regions. When Build is used to re-create the polygon topology, region topology will also be re-created.

  • The coordinate precision of the output coverage is determined by the current processing rule set by the derived precision environment setting. If the processing rule has not been established, the output coverage will be the same precision as the input coverage.

Syntax

SimplifyLineOrPolygon_arc (in_cover, out_cover, simplification_tolerance, {simplification_operator}, {ErrorCheck})
ParameterExplanationData Type
in_cover

The coverage containing arcs or polygons to be simplified.

Coverage
out_cover

The coverage to be created. The output coverage name must be different from the input coverage name.

Coverage
simplification_tolerance

Sets the tolerance in coverage units. A tolerance must be specified and must be greater than zero.

Double
simplification_operator
(Optional)

Specifies the simplification operator.

  • POINT_REMOVE —Uses the Douglas-Peucker algorithm for line simplification with enhancements. This operator is the default.
  • BEND_SIMPLIFY —Detects and removes extraneous bends from the original line.
String
ErrorCheck
(Optional)

Specifies whether to check for topological errors, including line-crossing, line-overlapping, zero-length lines, collapsed polygons, and holes falling outside of polygons.

  • NO_ERROR_CHECK —Specifies to not check for topological errors. This is the default.
  • ERROR_CHECK —Specifies to check for topological errors.
Boolean

Code Sample

SimplifyLineOrPolygon example (stand-alone script)

The following stand-alone script demonstrates how to simplify a lake coverage.

# Name: SimplifyLineOrPolygon_Example.py
# Description: Simplifies a lake coverage
# Requirements: ArcInfo Workstation

# Import system modules
import arcpy
from arcpy import env

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

# Set local variables
inCover = "lakeshore"
outCover = "C:/output/cartolake"
simplificationTolerance = 110
simplificationOperator = "BEND_SIMPLIFY"

# Execute SimplifyLineOrPolygon
arcpy.SimplifyLineOrPolygon_arc(inCover, outCover, simplificationTolerance,
                                simplificationOperator, "")

Environments

  • Current Workspace
  • Level Of Comparison Between Projection Files
  • Precision For Derived Coverages
  • Precision For New Coverages
  • Scratch Workspace

Licensing Information

  • ArcGIS for Desktop Basic: No
  • ArcGIS for Desktop Standard: No
  • ArcGIS for Desktop Advanced: Requires ArcInfo Workstation installed

Related Topics

  • An overview of the coverage Generalization toolset
  • Simplify Line
  • Simplify Polygon
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