Eliminates unwanted polygons (slivers) by merging them into the neighboring polygons.
Before Eliminate
Eliminated with Largest Area option
Eliminated with Longest boundary option
Expression | Explanation |
---|---|
Function Name | Eliminate |
<input dataset> | A String representing the input layer. Must be of Polygon type. |
<output dataset> | A String - the full name of the output layer. |
<Eliminate Method> | Required. A String - valid values:
|
<SQL Expression> | A String representing the selection expression. Example: Shape_Area < 200 AND Name = 'a' |
{Join Field} | A String representing a field name to be used in the elimination process. Used only if the elimination method is "Join Field" |
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, "Eliminate", "input dataset", "output dataset", "Eliminate Method", "SQL Expression", "Join Field"]) |
.NET using ETGWRun.exe | StartInfo.FileName = ETGWPath StartInfo.Arguments = "Eliminate" "input dataset" "output dataset" "Eliminate Method" "SQL Expression" "Join Field" |
.NET using ETGWOutX.dll | Eliminate(input dataset, output dataset, Eliminate Method, SQL Expression", Join Field) |
ArcPy | arcpy.Eliminate(input dataset, output dataset, "Eliminate Method" , "SQL Expression", "Join Field") |
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.