Merges two layers with the same geometry type into a single output layer.
Parameters
Expression | Explanation |
---|---|
Function Name | MergeLayers |
<input dataset> | A String representing the input layer. |
<merge dataset> | A String representing the layer to be merged. Must be of the same geometry type as the input layer. |
<output dataset> | A String - the full name of the output layer. |
{All Attributes} | Optional. A Boolean indicating whether the attributes of the Merge layer to be transferred to the output. |
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, "MergeLayers", "input dataset", "merge dataset", "output dataset", "All Attributes"]) |
.NET using ETGWRun.exe | StartInfo.FileName = ETGWPath StartInfo.Arguments = "MergeLayers" "input dataset" "merge dataset" "output dataset" "All Attributes" |
.NET using ETGWOutX.dll | MergeLayers(input dataset, merge dataset, output dataset, All Attributes) |
ArcPy | arcpy.MergeLayers(input dataset, merge dataset, "output dataset" , "All Attributes") |
Notes:
<> - required parameter
{} - optional parameter
The argument separator for StartInfo.Arguments is space. If a string might contain a space, you need to double quote it.