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.


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.