4.4.3 Convert Sensor Point To Geographic Point

Sensor to geographic coordinates conversion.

Detailed description

This Application converts a sensor point of an input image to a geographic point using the Forward Sensor Model of the input image.

Parameters

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





Parameter key

Parameter type

Parameter description




in

Input image

Sensor image

input

Group

Point Coordinates

input.idx

Float

X value of desired point

input.idy

Float

Y value of desired point

output

Group

Geographic Coordinates

output.idx

Float

Output Point Longitude

output.idy

Float

Output Point Latitude

output.town

String

Main town near the coordinates computed

output.country

String

Country of the image

inxml

XML input parameters file

Load otb application from xml file

outxml

XML output parameters file

Save otb application to xml file











Table 4.50: Parameters table for Convert Sensor Point To Geographic Point.

Sensor image Input sensor image.

Point Coordinates

Geographic 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_ConvertSensorToGeoPoint -in QB_TOULOUSE_MUL_Extract_500_500.tif -input.idx 200 -input.idy 200

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 ConvertSensorToGeoPoint application 
ConvertSensorToGeoPoint = otbApplication.Registry.CreateApplication("ConvertSensorToGeoPoint") 
 
# The following lines set all the application parameters: 
ConvertSensorToGeoPoint.SetParameterString("in", "QB_TOULOUSE_MUL_Extract_500_500.tif") 
 
ConvertSensorToGeoPoint.SetParameterFloat("input.idx", 200) 
 
ConvertSensorToGeoPoint.SetParameterFloat("input.idy", 200) 
 
# The following line execute the application 
ConvertSensorToGeoPoint.ExecuteAndWriteOutput()

Limitations

None

Authors

This application has been written by OTB-Team.

See also

These additional ressources can be useful for further information: