Open Table of Contents

ET GeoWizards Scripting

AggregatePolygons
(Go to the main page of the function)

Combines the polygons that are within the user specified distance into new polygons. Can be used also to generalize buildings.

Syntax    

Dim ET As  New ETGW_Core
Set variable = ET.AggregatePolygons(pInFeatureClass, sOutFileName, dAgregationDistance, dAreaTolerance, sMessage)

The AggregatePolygons 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)
dAgregationDistance Required. A Double representing  the aggregation distance. The polygons that are closer to each other than this distance will be combined
dAreaTolerance Optional. A Double representing  the minimum area of holes to be preserved. All holes with area less than this tolerance will be removed.
sMessage Optional. In a case of failure -  description of the cause. If the functions completes with success an empty string will be returned. 

Example