4.4.2 Cartographic to geographic coordinates conversion

Convert cartographic coordinates to geographic one.

Detailed description

This application computes the geographic coordinates from a cartographic one. User has to give the X and Y coordinate and the cartographic projection (UTM/LAMBERT/LAMBERT2/LAMBERT93/SINUS/ECKERT4/TRANSMERCATOR/MOLLWEID/SVY21).

Parameters

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





Parameter key

Parameter type

Parameter description




carto

Group

Input cartographic coordinates

carto.x

Float

X cartographic coordinates

carto.y

Float

Y cartographic coordinates

mapproj

Choices

Output Cartographic Map Projection

mapproj utm

Choice

Universal Trans-Mercator (UTM)

mapproj lambert2

Choice

Lambert II Etendu

mapproj lambert93

Choice

Lambert93

mapproj wgs

Choice

WGS 84

mapproj epsg

Choice

EPSG Code

mapproj.utm.zone

Int

Zone number

mapproj.utm.northhem

Boolean

Northern Hemisphere

mapproj.epsg.code

Int

EPSG Code

long

Float

Output long

lat

Float

Output lat

inxml

XML input parameters file

Load otb application from xml file

outxml

XML output parameters file

Save otb application to xml file











Table 4.48: Parameters table for Cartographic to geographic coordinates conversion.

Input cartographic coordinates

Output Cartographic Map Projection Parameters of the output map projection to be used. Available choices are:

Output long Point longitude coordinates.

Output lat Point latitude coordinates.

Load otb application from xml file Load otb application from xml file

Save otb application to xml file Save otb application to xml file

Example

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

otbcli_ConvertCartoToGeoPoint -carto.x 367074.625 -carto.y 4835740 -mapproj utm -mapproj.utm.northhem true -mapproj.utm.zone 31

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 ConvertCartoToGeoPoint application 
ConvertCartoToGeoPoint = otbApplication.Registry.CreateApplication("ConvertCartoToGeoPoint") 
 
# The following lines set all the application parameters: 
ConvertCartoToGeoPoint.SetParameterFloat("carto.x", 367074.625) 
 
ConvertCartoToGeoPoint.SetParameterFloat("carto.y", 4835740) 
 
ConvertCartoToGeoPoint.SetParameterString("mapproj","utm") 
 
ConvertCartoToGeoPoint.SetParameterString("mapproj.utm.northhem","1") 
 
ConvertCartoToGeoPoint.SetParameterInt("mapproj.utm.zone", 31) 
 
# The following line execute the application 
ConvertCartoToGeoPoint.ExecuteAndWriteOutput()

Limitations

None

Authors

This application has been written by OTB-Team.