Open Table of Contents

ET GeoWizards Scripting

Advanced Merge
(Go to the main page of the function)

Merges two polygon data sets. The result does not contain overlaps

Syntax    

Dim ET As  New ETGW_Core
Set variable =  ET.AdvancedMerge(pBaseFeatureClass, pMergeFeatureClass, _
                                                       sOutFileName, dFuzzy, iPriority, sMessage)

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

Part Description
variable An IFeatureClass object
pBaseFeatureClass Required. An IFeatureClass object (must be a Polygon  feature class)
pMergeFeatureClass Required. An IFeatureClass object (Must be a Polygon feature class). The features of this feature class will be merged to the pBaseFeatureClass
sOutFileName Required. A String - the full name of the output feature class (A feature class with the same full name should not exist)
dFuzzy Required. A Double representing  the Fuzzy tolerance (in the units of the input dataset) to be used
iPriority Required. An integer representing the priority of the polygons to be merged
  • Priority of  "-1" (Erase) - the polygons from the Base dataset are erased with the polygons of the Merge dataset
  • Priority of "0" (Low) -  only the polygons (or portions of them) from the Merge dataset that do not overlap with these of the Base layer are added to the new dataset
  • Priority of "1" (Standard) - Creates intersections where the polygons from the Merge dataset intersect these from the base layer. The intersection polygons carry the attributes of the corresponding polygons from both datasets
  • Priority of "2" (High) - The polygons from the Merge dataset are entirely preserved. Only these polygons (or portions of them) from the base dataset that do not overlap with the polygons from the Merge dataset are added to the output.
sMessage Optional. In a case of failure -  description of the cause. If the functions completes with success an empty string will be returned. 

Example