Generalizes (reduces the number of vertices required to represent a polyline) the features of a polyline layer using the Douglas-Poiker algorithm
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. |
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:
<> - required parameter
{} - optional parameter
The argument separator for StartInfo.Arguments is space. If a string might contain a space, you need to double quote it.