<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>I have done a lot of work with the US National Grid (USNG) which
is very similar to the MGRS. It is a bit of an odd coordinate
system because it uses one string rather than two numbers for the
coordinate, as such it doesn't really fit into a geometry type
directly (and that is ignoring that it technically defines areas
not points).<br>
</p>
<p>To deal with this, I store the coordinates in a "normal"
coordinate system in PostGIS and wrote a PostgreSQL binding to my
C++ library to convert to/from the string form only for
input/output [1]. I have developed and tested this in so far as
what I have needed personally. I'm sure there is further work
needed (PRs welcome). Also, note I've done all this on Linux and
have no idea if it works under Windows.<br>
</p>
Another (potentially more Windows friendly) option could be to use
PL/v8 and adapt my JavaScript USNG implementation [2] or the Proj4JS
MGRS implementation [3].<br>
<br>
<br>
<p>[1] <a class="moz-txt-link-freetext" href="https://github.com/klassenjs/usng-tools-cxx">https://github.com/klassenjs/usng-tools-cxx</a></p>
[2] <a class="moz-txt-link-freetext" href="https://github.com/klassenjs/usng-tools-js">https://github.com/klassenjs/usng-tools-js</a><br>
<br>
[3] <a class="moz-txt-link-freetext" href="https://github.com/proj4js/mgrs">https://github.com/proj4js/mgrs</a><br>
<br>
<div class="moz-cite-prefix">On 08/22/2018 04:01 AM, Per-Olof Norén
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:4C462DB8-C798-4158-B15E-B18B71E136E4@gmail.com">
<meta http-equiv="Context-Type" content="text/html; charset=utf-8">
<div>Hi,</div>
<div>Have a look at UTM.</div>
<div>MGRS is using UTM and UPS.</div>
<div><br>
</div>
<div>/p</div>
<div><br>
22 aug. 2018 kl. 10:18 skrev Lars <<a
href="mailto:laasunde@hotmail.com" moz-do-not-send="true">laasunde@hotmail.com</a>>:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div>
Hello,</div>
<div>
<br>
</div>
<div>
Does PostGIS support MGRS reference system? If no, are there
any plans to add support for this reference system?</div>
<div>
<br>
</div>
<div>
Viewing the spatial_ref_sys table there is no entry name
MGRS or similar.</div>
<div>
<br>
</div>
<div>
Using Windows 10, PostgreSQL 10.3 and PostGIS 2.4.4</div>
<div>
<br>
</div>
<div>
Appreciate any response.</div>
<div>
<br>
</div>
<div>
kind regards, Lars<br>
</div>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>postgis-users mailing list</span><br>
<span><a href="mailto:postgis-users@lists.osgeo.org"
moz-do-not-send="true">postgis-users@lists.osgeo.org</a></span><br>
<span><a
href="https://lists.osgeo.org/mailman/listinfo/postgis-users"
moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></span></div>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
postgis-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/postgis-users">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></pre>
</blockquote>
<br>
</body>
</html>