ET GeoWizards Scripting
GeneralizePolygons
(Go to the main page of the
function)
Generalizes ( reduces the number of vertices required to represent a polygon ) the features of a polygon layer using the Douglas-Poiker algorithm. Preserves the polygon topology
Syntax
Dim ET As New ETGW_Core
Set variable = ET.GeneralizePolygons(pInFeatureClass,
sOutFileName, dTolerance, sMessage)
The GeneralizePolygons 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) |
| dTolerance | Required. A Double representing Generalize tolerance (maximum offset) - the maximum distance that the generalized polygon will differ from the original one. |
| sMessage | Optional. In a case of failure - description of the cause. If the functions completes with success an empty string will be returned. |
GeneralizeSinglePolygons
(Go to the main page of the
function)
Generalizes ( reduces the number of vertices required to represent a polygon ) the features of a polygon layer using the Douglas-Poiker algorithm. Use only on polygon datasets that have only stand-alone polygons (no common boundaries between the polygons)
Syntax
Dim ET As New ETGW_Core
Set variable = ET.GeneralizeSinglePolygons(pInFeatureClass,
sOutFileName, dTolerance, sMessage)
The GeneralizeSinglePolygons 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) |
| dTolerance | Required. A Double representing Generalize tolerance (maximum offset) - the maximum distance that the generalized polygon will differ from the original one. |
| sMessage | Optional. In a case of failure - description of the cause. If the functions completes with success an empty string will be returned. |