Open Table of Contents

Smooth  Polygons

Go to ToolBox Implementation Go to .NET Implementation

Smooth the features of a polygon layer using three different smoothing algorithms"

Inputs:

Outputs:

Notes: 

ToolBox implementation
(Go to TOP)

Command line syntax

ET_GPSmoothPolygonsBS <input_dataset> <out_feature_class> <smoothness> <freedom> {densify_tolerance} {generalize_tolerance}

Parameters

Expression Explanation
<input_dataset> A Polyline feature class or feature layer
<out_feature_class> A String - the full name of the output feature class (A feature class with the same full name should not exist)
<smoothness> An Integer that defines the number of points in the output curve. The allowed values ( 2 to 20 ) in fact are point multiplier. The number of vertices of the original polyline multiplied by this value will give the number of vertices of the smoothed polyline. The larger the value of the <smoothness> parameter, the slower the process will be.
<freedom> An Integer that defines how close to the original polyline the curve will be. The allowed values are from 3 to 10. Smaller values give better approximation. With large values the curve will become very similar to Bezier curve
{densify_tolerance} A Double representing the Densification tolerance. In some cases the smooth parameters cannot restrict the smoothing enough. The user can restrict the effect of the smoothing by introducing new vertices in the shapes. See Densify function for details
{generalize_tolerance} A Double representing the Generalization tolerance. The smoothing introduces in the shapes many new vertices. The user can decrease the number of vertices by using this option. See Generalize function for details.

Scripting syntax

ET_GPSmoothPolygonsBS (input_dataset, out_feature_class, smoothness, freedom, densify_tolerance, generalize_tolerance)

See the explanations above:
<> - required parameter
{} - optional parameter

.NET implementation
(Go to TOP)

SmoothPolygonsBS(pInFC As IFeatureClass, sOutFName As String, iSmoothness As Short, iFreedom As Short, Optional dDensTol As Double = 0, Optional dGenTol As Double = 0) As IFeatureClass

Copyright Ianko Tchoukanski