Advanced Merge

Running programmatically

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)

advM_t2.jpg (4956 bytes)

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name AdvancedMerge
<input dataset> A String representing the input layer. Must be of Polygon type.
<merge dataset> A String representing the layer to be merged. Must be of Polygon type.
<output dataset> A String - the full name of the output layer.
<Merge Priority> Required. A string representing the priority of the polygons to be merged
  • Erase - the polygons from the Base dataset are erased with the polygons of the Merge dataset.
  • 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.
  • 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.
  • 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.
{All Attributes} Optional. A Boolean indicating whether the attributes of the Merge layer to be transferred to the output.

Running the function

ETGWPath used in the table below is the full path to ETGWRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETGeo Wizards\ETGWRun.exe")

Language Syntax
Python subprocess.call([ETGWPath, "AdvancedMerge", "input dataset", "merge dataset", "output dataset", "Merge Priority", "All Attributes"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "AdvancedMerge" "input dataset"  "merge dataset" "output dataset" "Merge Priority" "All Attributes"
.NET using ETGWOutX.dll AdvancedMerge(input dataset, merge dataset, output dataset, Merge Priority, All Attributes)
ArcPy arcpy.AdvancedMerge(input dataset, merge dataset, "output dataset" , "Merge Priority", "All Attributes")

Notes:

(Go to TOP)