<div dir="auto"><div dir="auto">This will calculate the declamation.  It would take some C coding to integrate it with PostgreSQL.</div><div dir="auto"><br></div><a href="https://www.ngdc.noaa.gov/geomag/WMM/soft.shtml">https://www.ngdc.noaa.gov/geomag/WMM/soft.shtml</a><br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Fri, Feb 7, 2020, 08:14  <<a href="mailto:paul.malm@lfv.se">paul.malm@lfv.se</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="SV" link="blue" vlink="purple">
<div class="m_5187789878345505533WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi, list!<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I’m writing a program reading a file and creating graphical objects.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I have a starting point (lat/lon WGS 84), a length (m) and a magnetic bearing (degrees).<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I would like to automatically convert the magnetic bearing to a true bearing when they occurs in the file I’m reading.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Is there a converter in PostGis that can be used, or is there another way my program can get the declamation?  <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Kind regard,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Paul<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank" rel="noreferrer">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></blockquote></div></div>