Show Navigation | Hide Navigation

Smooth Polygon (Data Management) (ArcInfo only)

Release 9.3
Last modified March 8, 2012
E-mail This Topic Printable Version Give Us Feedback


Related Topics

NOTE: This topic was updated for 9.3.1.


Smooths a polygon to improve its aesthetic or cartographic quality


Illustration


Smooth Polygon illustration

Usage tips

Command line syntax
An overview of the Command Line window
SmoothPolygon_management <in_features> <out_feature_class> <PAEK | BEZIER_INTERPOLATION> <tolerance> {FIXED_ENDPOINT | NOT_FIXED} {NO_CHECK | FLAG_ERRORS}

Parameter Explanation Data Type
<in_features>

The polygon features to be smoothed.

Feature Layer
<out_feature_class>

The output polygon feature class to be created.

Feature Class
<PAEK | BEZIER_INTERPOLATION>

Specifies the smoothing algorithm.

  • PAEK — Stands for Polynomial Approximation with Exponential Kernel. It calculates a smoothed polygon that will not pass through the input polygon vertices. This is the default.
  • BEZIER_INTERPOLATION — Fits Bezier curves between vertices. The resulting polygon passes through the vertices of input polygons. This algorithm does not require a tolerance.

String
<tolerance>

Sets a tolerance used by the PAEK algorithm. A tolerance must be specified, and it must be greater than zero. You can specify a preferred unit; the default is the feature unit.

Linear Unit
{FIXED_ENDPOINT | NOT_FIXED}

Specifies whether or not to preserve the endpoints for isolated polygon rings. This option works with the PAEK algorithm only.

  • FIXED_ENDPOINT — Preserves the endpoint of an isolated polygon ring. This is the default.
  • NOT_FIXED — Smooths through the endpoint of an isolated polygon ring.

Boolean
{NO_CHECK | FLAG_ERRORS}

Specifies how the topological errors (possibly introduced in the process, such as line crossing or overlapping) will be handled.

  • NO_CHECK — Specifies not to check for topological errors. This is the default.
  • FLAG_ERRORS — Specifies to flag topological errors, if any are found.

String
Data types for geoprocessing tool parameters


Command line example

smoothpolygon wetlands smoothed_wetlands BEZIER_INTERPOLATION 0.0

Scripting syntax
About getting started with writing geoprocessing scripts
SmoothPolygon_management (in_features, out_feature_class, algorithm, tolerance, endpoint_option, error_option)

Parameter Explanation Data Type
in_features (Required)

The polygon features to be smoothed.

Feature Layer
out_feature_class (Required)

The output polygon feature class to be created.

Feature Class
algorithm (Required)

Specifies the smoothing algorithm.

  • PAEK — Stands for Polynomial Approximation with Exponential Kernel. It calculates a smoothed polygon that will not pass through the input polygon vertices. This is the default.
  • BEZIER_INTERPOLATION — Fits Bezier curves between vertices. The resulting polygon passes through the vertices of input polygons. This algorithm does not require a tolerance.

String
tolerance (Required)

Sets a tolerance used by the PAEK algorithm. A tolerance must be specified, and it must be greater than zero. You can specify a preferred unit; the default is the feature unit.

Linear Unit
endpoint_option (Optional)

Specifies whether or not to preserve the endpoints for isolated polygon rings. This option works with the PAEK algorithm only.

  • FIXED_ENDPOINT — Preserves the endpoint of an isolated polygon ring. This is the default.
  • NOT_FIXED — Smooths through the endpoint of an isolated polygon ring.

Boolean
error_option (Optional)

Specifies how the topological errors (possibly introduced in the process, such as line crossing or overlapping) will be handled.

  • NO_CHECK — Specifies not to check for topological errors. This is the default.
  • FLAG_ERRORS — Specifies to flag topological errors, if any are found.

String

Data types for geoprocessing tool parameters


Script example

# Simplifying soil polygons followed by smoothing

import arcgisscripting
gp = arcgisscripting.create()

# Set the workspace
gp.workspace = "d:/data/mapDB.mdb/soils"

# Simplifying soil polygons followed by smoothing
gp.simplifypolygon("soilpolys", "soilpolys_simplified", "BEND_SIMPLIFY", "80", "RESOLVE_ERRORS")
gp.smoothpolygon("soilpolys_simplified", "soilpolys_smoothed", "PAEK", "150", "FLAG_ERRORS")

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.