Open Table of Contents

Eliminate

Go to ToolBox Implementation Go to .NET Implementation

Eliminates unwanted polygons (slivers) by merging them into the neighboring polygons or deleting them.

Inputs:

Outputs:

Notes :

Examples:

Before Eliminate

Eliminated with Largest Area option

Eliminated with Longest boundary option

eliminate_before.jpg (10900 bytes) eliminate_largest.jpg (11370 bytes) eliminate_longest.jpg (12208 bytes)

ToolBox implementation
(Go to TOP)

Command line syntax 

ET_GPEliminate <input_dataset> <out_feature class> <Attrib | Thickness | Circularity> <Delete | Largest | Longest | Join Field> {SQL_Expression} {thickness_circularity_ratio} {Join_Field}

Parameters

Part Description
<input_dataset> A Polygon 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)
<Attrib | Thickness | Circularity> Selection Method. A String - the method to be used for selection of the polygons to be eliminated. The values can be:
  • "Attrib" - an attribute query will be used
  • "Thickness" - the thickness ratio will be used for selection. The thickness  is expressed as a ratio of the polygon area versus the area of its minimal bounding square. The ratio will have value of 1 for a square. The smaller the value is, the thinner the polygon is.
  • "Circularity" - the thickness ratio will be used for selection. For a circle the circularity will be 1. The thinner the polygon is the smaller the circularity will be.
<Delete | Largest | Longest | Join Field> Elimination Method. A String  representing the elimination method to be used. The values can be:
  • "Delete" - The  selected polygons will be deleted
  • "Largest" - The polygons will be eliminated by joining them to the neighboring polygons  that have the largest area
  • "Longest" - The polygons will be eliminated by joining them to the neighboring polygons with the longest common border .
  • "Join Field" - The polygons will be eliminated by joining them to the neighboring polygons with the same value in the selected field as the sliver polygons. 
{SQL_Expression} A String - the Where Clause that will be used if  "Attrib" selection method is used. Ignored if any of the other selection methods is used.
{Join_Field}  A String - A String representing the name of the field to be used with the "Join Field" option. 
 {thickness_circularity_ratio} A Double representing the value of the ratio to be used. If the selection method is "Thickness" this is the Thickness ratio, if "Circularity" - this is the Circularity ratio. If "Attrib" selection method is specified this value is ignored 

Scripting syntax

ET_GPEliminate (input_dataset, out_feature class, selection_method, elimination_method, SQL_Expression, thickness_circularity_ratio,Join_Field)

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

Example Python script:

import arcpy
arcpy.ImportToolbox("C:/Program Files/ET SpatialTechniques/ET GeoWizards 11.0 for ArcGIS 10.1/ET GeoWizards.tbx")
arcpy.gp.toolbox = "C:/Program Files/ET SpatialTechniques/ET GeoWizards 11.0 for ArcGIS 10.1/ET GeoWizards.tbx"
input_dataset = "C:\\data\\pg1.shp"
result = "C:\\data\\fgdb_test.gdb\\eliminate_result"
arcpy.gp.ET_GPEliminate (input_dataset,  result, "Thickness", "Longest","",0.35,"")

.NET implementation
(Go to TOP)

Eliminate(pInFC As IFeatureClass, sOutFName As String, sSelectionMethod As String, sEliminationMethod As String, Optional sExpression As String = "", Optional dRatio As Double = 0, Optional sJoinField As String = "") As IFeatureClass

Copyright Ianko Tchoukanski