[next] [prev] [prev-tail] [tail] [up]

#### 4.2.4 Vector Data reprojection

This application allows to reproject a vector data using support image projection reference, or a user specified map projection

##### Detailed description

This application allows to reproject a vector data using support image projection reference, or a user given map projection.
If given, image keywordlist can be added to reprojected vectordata.

##### Parameters

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

Parameter key | Parameter type | Parameter description
in | Group | Input data
in.vd | Input File name | Input vector data
in.kwl | Input image | Use image keywords list
out | Group | Output data
out.vd | Output File name | Output vector data
out.proj | Choices | Output Projection choice
out.proj image | Choice | Use image projection ref
out.proj user | Choice | User defined projection
out.proj.image.in | Input image | Image used to get projection map
out.proj.user.map | Choices | Output Cartographic Map Projection
out.proj.user.map utm | Choice | Universal Trans-Mercator (UTM)
out.proj.user.map lambert2 | Choice | Lambert II Etendu
out.proj.user.map lambert93 | Choice | Lambert93
out.proj.user.map wgs | Choice | WGS 84
out.proj.user.map epsg | Choice | EPSG Code
out.proj.user.map.utm.zone | Int | Zone number
out.proj.user.map.utm.northhem | Boolean | Northern Hemisphere
out.proj.user.map.epsg.code | Int | EPSG Code

Table 4.13: Parameters table for Vector Data reprojection.

Input data

- Input vector data: The input vector data to reproject
- Use image keywords list: Optional input image to fill vector data with image kwl.

Output data

- Output vector data: The reprojected vector data
- Output Projection choice:

  Available choices are:

  - Use image projection ref: Vector data will be reprojected in image projection ref.
    - Image used to get projection map: Projection map will be found using image metadata
  - User defined projection
    - Output Cartographic Map Projection: Parameters of the ouptut map projection to be used.
    - Zone number: The zone number ranges from 1 to 60 and allows to define the transverse mercator projection (along with the hemisphere)
    - Northern Hemisphere: The transverse mercator projections are defined by their zone number as well as the hemisphere. Activate this parameter if your image is in the northern hemisphere.
    - EPSG Code: See www.spatialreference.org to find which EPSG code is associated to your projection

##### Example

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

otbcli_VectorDataReprojection -in.vd VectorData_QB1.shp -out.proj image -out.proj.image ROI_QB_MUL_1.tif -out.vd reprojected_vd.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 VectorDataReprojection application
VectorDataReprojection = otbApplication.Registry.CreateApplication("VectorDataReprojection")
# The following lines set all the application parameters:
VectorDataReprojection.SetParameterString("in.vd", "VectorData_QB1.shp")
VectorDataReprojection.SetParameterString("out.proj","image")
# The following line execute the application
VectorDataReprojection.ExecuteAndWriteOutput()

##### Authors

This application has been written by OTB-Team.

[next] [prev] [prev-tail] [front] [up]