4.2.1 Concatenate

Concatenate VectorDatas

Detailed description

This application concatenates a list of VectorData to produce a unique VectorData as output.Note that the VectorDatas must be of the same type (Storing polygons only, lines only, or points only)

Parameters

This section describes in details the parameters available for this application. Table 4.28, page 471 presents a summary of these parameters and the parameters keys to be used in command-line and programming languages. Application key is ConcatenateVectorData.





Parameter key

Parameter type

Parameter description




vd

Input vector data list

Input VectorDatas to concatenate

out

Output vector data

Concatenated VectorData

inxml

XML input parameters file

Load otb application from xml file

outxml

XML output parameters file

Save otb application to xml file











Table 4.28: Parameters table for Concatenate.

Example

To run this example in command-line, use the following:

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

To run this example from Python, use the following code snippet:

#!/usr/bin/python 
 
# Import the otb applications package 
import otbApplication 
 
# The following line creates an instance of the ConcatenateVectorData application 
ConcatenateVectorData = otbApplication.Registry.CreateApplication("ConcatenateVectorData") 
 
# The following lines set all the application parameters: 
ConcatenateVectorData.SetParameterStringList("vd", ['ToulousePoints-examples.shp', 'ToulouseRoad-examples.shp']) 
 
ConcatenateVectorData.SetParameterString("out", "ConcatenatedVectorData.shp") 
 
# The following line execute the application 
ConcatenateVectorData.ExecuteAndWriteOutput()

Limitations

None

Authors

This application has been written by OTB-Team.