Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Data Management toolbox > Generalization toolset > Tools

Smooth Line (Data Management) (ArcInfo and ArcEditor only)

Release 9.2
Last modified November 29, 2010
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

Smoothes a line to improve its aesthetic or cartographic quality.

Learn more about how Smooth Line works


Illustration

Smooth Line illustration

Usage tips

Command line syntax
An overview of the Command Line window
SmoothLine_management <in_features> <out_feature_class> <PAEK | BEZIER_INTERPOLATION> <tolerance> {FIXED_CLOSED_ENDPOINT | NO_FIXED} {NO_CHECK | FLAG_ERRORS}

Parameter Explanation Data Type
<in_features>

The line features to be smoothed.

Feature Layer
<out_feature_class>

The output feature class to be created.

Feature Class
<PAEK | BEZIER_INTERPOLATION>

Specifies the line smoothing algorithm.

  • PAEK — Stands for Polynomial Approximation with Exponential Kernel. It calculates a smoothed line that will not pass through the input line vertices. This is the default.
  • BEZIER_INTERPOLATION — Fits Bezier curves between vertices. The resulting line passes through the vertices of the input line. 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_CLOSED_ENDPOINT | NO_FIXED}

Specifies whether to preserve the endpoints for closed lines. This option works with the PAEK algorithm only.

  • FIXED_CLOSED_ENDPOINT — Preserves the endpoint of a closed line. This is the default.
  • NO_FIXED — Smoothes through the endpoint of a closed line.

Boolean
{NO_CHECK | FLAG_ERRORS}

Specifies how the topological errors (possibly introduced in the process, such as line crossing) 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

smoothline contours smoothed_contours BEZIER_INTERPOLATION 0.0

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

Parameter Explanation Data Type
in_features (Required)

The line features to be smoothed.

Feature Layer
out_feature_class (Required)

The output feature class to be created.

Feature Class
algorithm (Required)

Specifies the line smoothing algorithm.

  • PAEK — Stands for Polynomial Approximation with Exponential Kernel. It calculates a smoothed line that will not pass through the input line vertices. This is the default.
  • BEZIER_INTERPOLATION — Fits Bezier curves between vertices. The resulting line passes through the vertices of the input line. 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 to preserve the endpoints for closed lines. This option works with the PAEK algorithm only.

  • FIXED_CLOSED_ENDPOINT — Preserves the endpoint of a closed line. This is the default.
  • NO_FIXED — Smoothes through the endpoint of a closed line.

Boolean
error_option (Optional)

Specifies how the topological errors (possibly introduced in the process, such as line crossing) 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 rivers followed by smoothing rivers

import arcgisscripting
gp = arcgisscripting.create()

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

# Simplifying rivers followed by smoothing rivers
gp.simplifyline("rivers", "rivers_simplified", "BEND_SIMPLIFY", "80", "RESOLVE_ERRORS")
gp.smoothline("rivers_simplified", "rivers_smoothed", "PAEK", "150")

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