Go to ET GeoWizards 12.x User Guide

Advanced Merge

Go to ToolBox Implementation

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

Inputs:

Outputs:

Examples:

Input Layers advMerge_in.jpg (20144 bytes) Base layer table

advM_bt.jpg (4281 bytes)

Merge layer table

advM_mt.jpg (2618 bytes)

Result: Priority of "-1" (Erase) advMerge_01.jpg (12194 bytes) Result table

advM_t01.jpg (4160 bytes)

Result: Priority of "0" (Low) advMerge_0.jpg (14618 bytes) Result table

advM_t0.jpg (5787 bytes)

Result: Priority of "1" (Standard) advMerge_1.jpg (15523 bytes) Result table

advM_t1.jpg (14322 bytes)

Result: Priority of "2" (High) advMerge_2.jpg (17231 bytes) Result table

advM_t2.jpg (4956 bytes)

ToolBox implementation
(Go to TOP)

Command line syntax

ET_GPAdvancedMerge <input_dataset> <merge_dataset> <out_feature class> <merge_priority>  {fuzzy_tolerance}

Parameters

Expression Explanation
<input_dataset> A Polygon feature class or feature layer
<merge_dataset> A Polygon feature class or feature class.
NOTE: The spatial references of <merge_dataset> and the <input_dataset> must have the same Geographic Coordinate System
<out_feature_class> A String - the full name of the output feature class (A feature class with the same full name should not exist)
<merge_priority> Required. A string representing the priority of the polygons to be merged
  • Priority of Erase - the polygons from the Base dataset are erased with the polygons of the Merge dataset
  • Priority of 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 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 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.
{fuzzy_tolerance} A Double representing  the Fuzzy tolerance (in the units of the input dataset) to be used

Scripting syntax

ET_GPAdvancedMerge (input_dataset, merge_dataset, out_feature class, merge_priority, fuzzy_tolerance)

Example Python script:

import arcpy
arcpy.ImportToolbox("C:/Program Files/ET SpatialTechniques/ET GeoWizards 11.0 for ArcGIS 10.1/ET GeoWizards.tbx")
input_dataset = "C:\\data\\pg1.shp"
merge_dataset = "C:\\data\\fgdb_test.gdb\\pg2"
result = "C:\\data\\fgdb_test.gdb\\erased"
arcpy.gp.toolbox = "C:/Program Files/ET SpatialTechniques/ET GeoWizards 11.0 for ArcGIS 10.1/ET GeoWizards.tbx");
arcpy.ET_GPAdvancedMerge(input_dataset, merge_datase, result, "Erase", "0.003426878")
Copyright © Ianko Tchoukanski