Concatenate vector data files


This application concatenates a list of vector data files to produce a unique vector data output file.

This application will gather all the geometries from the input files and write them into an output vector data file. Any format supported by OGR can be used. Ideally, all inputs should have the same set of fields and the same spatial reference system.


Input vector files -vd vectorfile1 vectorfile2... Mandatory
Vector data files to be concatenated.

Concatenated output -out vectorfile Mandatory
Output conctenated vector data file.

Load parameters from XML -inxml filename.xml
Load application parameters from an XML file.

Save parameters to XML -outxml filename.xml
Save application parameters to an XML file.


From the command-line:

otbcli_ConcatenateVectorData -vd ToulousePoints-examples.shp ToulouseRoad-examples.shp -out ConcatenatedVectorData.shp

From Python:

import otbApplication

app = otbApplication.Registry.CreateApplication("ConcatenateVectorData")

app.SetParameterStringList("vd", ['ToulousePoints-examples.shp', 'ToulouseRoad-examples.shp'])
app.SetParameterString("out", "ConcatenatedVectorData.shp")



The vector data must be contain the same type of geometries (point / lines / polygons). The fields present in the output file are the ones from the first input.