4.10.7 Obtain UTM Zone From Geo Point

UTM zone determination from a geographic point.

Detailed description

This application returns the UTM zone of an input geographic point.

Parameters

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





Parameter key

Parameter type

Parameter description




lat

Float

Latitude

lon

Float

Longitude

utm

Int

UTMZone

inxml

XML input parameters file

Load otb application from xml file

outxml

XML output parameters file

Save otb application to xml file











Table 4.162: Parameters table for Obtain UTM Zone From Geo Point.

Example

Obtain a UTM Zone To run this example in command-line, use the following:

otbcli_ObtainUTMZoneFromGeoPoint -lat 10.0 -lon 124.0

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 ObtainUTMZoneFromGeoPoint application 
ObtainUTMZoneFromGeoPoint = otbApplication.Registry.CreateApplication("ObtainUTMZoneFromGeoPoint") 
 
# The following lines set all the application parameters: 
ObtainUTMZoneFromGeoPoint.SetParameterFloat("lat", 10.0) 
 
ObtainUTMZoneFromGeoPoint.SetParameterFloat("lon", 124.0) 
 
# The following line execute the application 
ObtainUTMZoneFromGeoPoint.ExecuteAndWriteOutput()

Limitations

None

Authors

This application has been written by OTB-Team.