[MetaCRS] Proj4js MGRS conversion Geodectic
Charles Karney
charles.karney at sri.com
Tue Feb 5 13:09:58 PST 2013
GeoTrans 3.2 and GeographicLib (GeoConvert -n) give
33UVP0500444998 -> 13.72028E 48.25107N
33UXP0500444998 -> 16.41449E 48.24949N
42SWC5522406275 -> 69.59450E 33.49457N
42EWC5522406275 -> 69.90386E 56.78416S
so it looks as though some of your problems are switched letters
in the MGRS codes.
--Charles
From: metacrs-bounces at lists.osgeo.org [mailto:metacrs-bounces at lists.osgeo.org] On Behalf Of Toph
Sent: Tuesday, February 05, 2013 3:25 PM
To: metacrs at lists.osgeo.org
Subject: [MetaCRS] Proj4js MGRS conversion Geodectic
I'm trying to convert MGRS to WGS 84 Geodetic Output Coordinate System. The example in the test\mgrs.js works like I expect. Some MGRS don't provide the values I expect. Am I missing something?
Thanks Chris
========================================================================
If I use Geotrans, for MGRS "33UVP0500444998", I get 16.41449 for Lon and 48.24949 Lat.
If I use Proj4js.Point.fromMGRS("33UVP0500444998"), I get point.x.toPrecision(7) = 16.41449 and point.y.toPrecision(7) = 48.24949
=========================================================================
If I use Geotrans, for MGRS "42SWC5522406275", I get for Lon 69.59450 and Lat. 33.49458
If I use Proj4js.Point.fromMGRS("42SWC5522406275"), I get point.x.toPrecision(7) = 69.90387 and point.y.toPrecision(7) = -56.78416
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/metacrs/attachments/20130205/1d48ff5f/attachment.html>
More information about the MetaCRS
mailing list