Generalize Polylines

Running programmatically

Generalizes (reduces the number of vertices required to represent a polyline) the features of a polyline layer using the Douglas-Poiker algorithm

Inputs:

Outputs:

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name GeneralizePolylines
<input dataset> A String representing the input layer. Must be of Polyline type.
<output dataset> A String - the full name of the output layer.
<Generalize Tolerance> A Double representing the Generalization tolerance (in the units of the spatial reference of the input layer.

Running the function

ETGWPath used in the table below is the  full path to ETGWRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETGeo Wizards\ETGWRun.exe")

Language Syntax
Python subprocess.call([ETGWPath, "GeneralizePolylines", "input dataset", "output dataset", "Generalize Tolerance"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "GeneralizePolylines" "input dataset" "output dataset" "Generalize Tolerance"
.NET using ETGWOutX.dll GeneralizePolylines(input dataset, output dataset, Generalize Tolerance)
ArcPy arcpy.GeneralizePolylines(input dataset, output dataset, "Generalize Tolerance")

Notes:

(Go to TOP)