Append

This tool can be used to append multiple vectors into a single shapefile. It is therefore similar to the Union, with the difference being that the Union tool will remove all interior boundaries when combining features and only works on polyline and polygon shapetypes.

See Also:

Scripting:

The following is an example of a Python script using this tool:

wd = pluginHost.getWorkingDirectory()
# You may have multiple input shapefiles but they must
# be separated by semicolons in the string.
inputFiles = wd + "input1.shp" + ";" + wd + "input2.shp"
outputFile = wd + "tmp1.shp"
args = [inputFiles, outputFile]
pluginHost.runPlugin("Append", args, False)

This is a Groovy script also using this tool:

def wd = pluginHost.getWorkingDirectory()
// You may have multiple input shapefiles but they must
// be separated by semicolons in the string.
def inputFiles = wd + "input1.shp" + ";" + wd + "input2.shp"
def outputFile = wd + "tmp1.shp"
String[] args = [inputFiles, outputFile]
pluginHost.runPlugin("Append", args, false)

Credits: