Open Table of Contents

ET GeoWizards Scripting

GeneralizePolylines
(Go to the main page of the function)

Generalizes ( reduces the number of vertices required to represent a polyline ) the features of a polyline layer using the Douglas-Poiker algorithm.

Syntax    

Dim ET As  New ETGW_Core
Set variable = ET.GeneralizePolylines(pInFeatureClass, sOutFileName, dTolerance, sMessage)

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

Part Description
variable An IFeatureClass object
pInFeatureClass Required. An IFeatureClass object (Must be a Polyline 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 polyline 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. 

Example