Open Table of Contents

ET GeoWizards Scripting

Eliminate

(Go to the main page of the function)

Eliminates unwanted polygons (slivers) by merging them into the neighboring polygons or deleting them. Eliminate2 method added in ET GeoWizards 9.8.

Syntax    

Dim ET As  New ETGW_Core
Set variable = 
ET.Eliminate(pInFeatureClass, sOutFileName, _
                         sSelMethod, dThickness, sElimMethod, sWhereClause, sMessage)

Set variable =  ET.Eliminate2(pInFeatureClass, sOutFileName, _
                         sSelMethod, dThickness, sElimMethod, sWhereClause, sIDField, sMessage)

The Eliminate method syntax has the following object qualifier and arguments:

Part Description
variable An IFeatureClass object
pInFeatureClass Required. An IFeatureClass object (Must be a Polygon feature class)
sOutFileName Required. A String - the full name of the output feature class (A feature class with the same full name should not exist)
sSelMethod Required. 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.

Note - The values are case sensitive

dThickness Required. 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 
sElimMethod Required. 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. Applies to Eliminate2 method only

Note - The values are case sensitive

sWhereClause Required. A String - the Where Clause that will be used if sSelMethod = "Attrib", ignored if any of the other selection methods is used.

Note - Must be a valid Where Clause

sIDField Optional. A String representing the name of the field to be used with the "Join Field" option. Applies to Eliminate2 method only
sMessage Optional. In a case of failure -  description of the cause. If the functions completes with success an empty string will be returned. 

Example