ConvertCartoToGeoPoint

将地图坐标转换为地理坐标。

描述

这个应用程序从地图坐标计算地理坐标。用户必须给出X和Y坐标以及地图投影(详细信息请参见mApproj参数)。

参数

输入地图坐标

X cartographic coordinates -carto.x float Mandatory
X cartographic coordinates in the projection defined by mapproj parameter

Y cartographic coordinates -carto.y float Mandatory
Y cartographic coordinates in the projection defined by mapproj parameter


Map Projection -mapproj [utm|lambert2|lambert93|wgs|epsg] Default value: utm
Defines the map projection to be used.

  • Universal Trans-Mercator (UTM)
    A system of transverse mercator projections dividing the surface of Earth between 80S and 84N latitude.
  • Lambert II Etendu
    This is a Lambert Conformal Conic projection mainly used in France.
  • Lambert93
    This is a Lambert 93 projection mainly used in France.
  • WGS 84
    This is a Geographical projection
  • EPSG Code
    This code is a generic way of identifying map projections, and allows specifying a large amount of them. See www.spatialreference.org to find which EPSG code is associated to your projection;

通用跨墨卡托(UTM)选项

Zone number -mapproj.utm.zone int Default value: 31
The zone number ranges from 1 to 60 and allows defining the transverse mercator projection (along with the hemisphere)

Northern Hemisphere -mapproj.utm.northhem bool Default value: false
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代码选项

EPSG Code -mapproj.epsg.code int Default value: 4326
See www.spatialreference.org to find which EPSG code is associated to your projection


Output long -long float Mandatory
Point longitude coordinates in decimal degrees.

Output lat -lat float Mandatory
Point latitude coordinates in decimal degrees.

实例

从命令行执行以下操作:

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

来自Python的评论:

import otbApplication

app = otbApplication.Registry.CreateApplication("ConvertCartoToGeoPoint")

app.SetParameterFloat("carto.x", 367074.625)
app.SetParameterFloat("carto.y", 4835740)
app.SetParameterString("mapproj","utm")
app.SetParameterString("mapproj.utm.northhem","true")
app.SetParameterInt("mapproj.utm.zone", 31)

app.ExecuteAndWriteOutput()