How to use the UTM coordinate system (northing, easting) in Mathematica using the built-in functions (GeoPositionENU
, GeoGridPosition
, etc.). There are UTM Zones implemented in Mathematica, e.g.:
GeoProjectionData["UTMZone33"]
gives
{"TransverseMercator", {"Centering" -> {0, 15}, "CentralScaleFactor" -> 1, "GridOrigin" -> {0, 0}, "ReferenceModel" -> "WGS84"}}
From N45, E15 one should get Easting 500000 and Northing 4982950.4 (zone 33), but I can't reproduce it.
GeoGridPosition[GeoPosition[{45, 15, 0}, "WGS84"], "UTMZone33"]
gives
GeoGridPosition[{0., 4.98494*10^6, 0}, "UTMZone33"]
(Easting offset 500000 is understandable - default, but Northing is way off.)
Any help would be appreciated.
GeoProjectionData
is not correct for the UTM system: the value ofGridOrigin
is wrong (it should be{500000,0}
and so is the value ofCentralScaleFactor
(it should be 0.9996). $\endgroup$ll2utm[coord_] := GeoGridPosition[ GeoPosition[coord, "WGS84Original"], {"UTMZone33", "CentralScaleFactor" -> 0.9996, "GridOrigin" -> {500000, 0}}] [[1, {1, 2}]]
and thenll2utm[{45, 15}] // Round
gives{500000, 4982950}
. $\endgroup$"UTMZone"<>ToString@zone
. $\endgroup$