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:
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:
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. |