<div dir="ltr"><div>FYI<br></div><div>Forwarding Trent answer to the list.</div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">----------<br>Dr. Yann Chemin</div><div dir="ltr">+33 7 83 85 5234</div><div>JRC, Ispra, IT<br></div><div dir="ltr"><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <b class="gmail_sendername" dir="auto">Hare, Trent</b> <span dir="ltr"><<a href="mailto:thare@usgs.gov">thare@usgs.gov</a>></span><br>Date: Tue, 21 May 2019 at 17:27<br>Subject: Re: [EXTERNAL] Re: [PROJ] IAU2000 CRS definitions<br>To: Yann Chemin <<a href="mailto:dr.yann.chemin@gmail.com">dr.yann.chemin@gmail.com</a>><br>Cc: <<a href="mailto:proj@lists.osgeo.org">proj@lists.osgeo.org</a>><br></div><br><br><div dir="ltr">Yann,<div><br></div><div><i>>>What is the status of IAU integration in GDAL? <br></i><div> Not much to update. I have been busy with supporting PDS (and learning PDS4). Even has created a great start for both a raster and vector/table <a href="https://www.gdal.org/frmt_pds4.html" target="_blank">PDS4 driver in GDAL</a>. And also busy supporting a <a href="https://www.hou.usra.edu/meetings/planetdata2019/pdf/7019.pdf" target="_blank">camera model environment</a> based on the CSM API (to be presented at the upcoming <a href="https://www.hou.usra.edu/meetings/planetdata2019/" target="_blank">4th Planetary Data Workshop</a>).</div><div><br></div><div>Anyway, paths forward for IAU integration into GDAL. All of which I could use help with.</div></div><div><br></div><div>(1) validate major update to "<a href="https://github.com/USGS-Astrogeology/GDAL_scripts/blob/master/OGC_IAU2000_WKT_v2/Source_Python/create_IAU2000.py" target="_blank">create_IAU2000.py</a>" (by J-Christophe) and re-release WKT projection files to GitHub. This is a script to take the IAU published radius values and create the WTK projection files (per IAU-code) and initFile for proj4 can be created. We had to clarify the use of Reference_Meridian = 0.0 for both WKT1 and WKT2. You can wade through this confusing issue here: <a href="https://github.com/USGS-Astrogeology/GDAL_scripts/issues/34" target="_blank">https://github.com/USGS-Astrogeology/GDAL_scripts/issues/34</a> . That should be <b><u>all resolved</u></b> in the latest version of the Python script and we can now move forward.</div><div><br></div><div>(2) Update script to create for what GDAL needs. Here is what is required (email from Even), </div><div><font face="courier new, monospace">"""</font></div><div><font face="courier new, monospace">Just provide the data as .sql scripts to be inserted <span class="m_2487622709669696213gmail-il">in</span> the database <span class="m_2487622709669696213gmail-il">in</span><br><a href="https://github.com/OSGeo/proj.4/tree/master/data/sql" rel="noreferrer" target="_blank">https://github.com/OSGeo/proj.4/tree/master/data/sql</a><br><br>Either manually, or through an import script that generates them <span class="m_2487622709669696213gmail-il">from</span> other sources, like done <span class="m_2487622709669696213gmail-il">for</span>:<br>- EPSG: <a href="https://github.com/OSGeo/proj.4/blob/master/scripts/build_db.py" rel="noreferrer" target="_blank">https://github.com/OSGeo/proj.4/blob/master/scripts/build_db.py</a><br>- ESRI: <a href="https://github.com/OSGeo/proj.4/blob/master/scripts/build_db_from_esri.py" rel="noreferrer" target="_blank">https://github.com/OSGeo/proj.4/blob/master/scripts/build_db_from_esri.py</a><br>- IGNF: <a href="https://github.com/OSGeo/proj.4/blob/master/scripts/build_db_create_ignf_from_xml.py" rel="noreferrer" target="_blank">https://github.com/OSGeo/proj.4/blob/master/scripts/build_db_create_ignf_from_xml.py</a><br><br>The database schema is <span class="m_2487622709669696213gmail-il">in</span>:<br><a href="https://github.com/OSGeo/proj.4/blob/master/data/sql/proj_db_table_defs.sql" rel="noreferrer" target="_blank">https://github.com/OSGeo/proj.4/blob/master/data/sql/proj_db_table_defs.sql</a> <br></font></div><div><font face="courier new, monospace">"""</font></div><div><font face="courier new, monospace"><br></font></div><div>(3. longer-term). Lastly, I'm not sure what to do with <a href="http://spatialreference.org" target="_blank">spatialreference.org</a>. I keep hearing it has been deprecated, so no updates, but it keeps hanging around. :-). If we need a new registry we can help stand something up (or maybe just use Github?). But, I would still like our codes to head over to the OGC CRS resolver (not sure the status for that effort though) - see: <a href="http://external.opengeospatial.org/twiki_public/CRSdefinitionResolver" target="_blank">http://external.opengeospatial.org/twiki_public/CRSdefinitionResolver</a> But ... by forcing the date in the name (e.g. IAU2000, IAU2015), I sort-of messed up RESTful "versioning" which should look more like (for Mars 49900 using the 2000 report would be something like <font face="courier new, monospace">"/def/crs/IAU/2000/49900" </font><font face="arial, sans-serif"><u>not</u></font><font face="courier new, monospace"> "/def/crs/IAU2000/49900"). </font><font face="arial, sans-serif">I guess for the resolver website we could just split the IAU and year...?</font></div><div><br></div><div>I would love to see progress made on this front - so again, I would welcome the help!</div><div><br></div><div>thanks,</div><div>Trent</div><div><br></div><div>Also, as a reminder, J-Christophe, also has a fork of Mapserver (on his github site) with IAU projection code support. We need to test that too (as have used <a href="http://planetarygis.blogspot.com/2014/09/tips-to-interact-with-astros-wms-maps.html" target="_blank">Mapserver for years</a> and embarrassingly default to EPSG:4326! Fortunately degrees are degrees but not a good precedence for us to use all these years).</div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 21, 2019 at 2:57 AM Yann Chemin <<a href="mailto:dr.yann.chemin@gmail.com" target="_blank">dr.yann.chemin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>+1 to Nyall's email.</div><div><br></div><div>is there a way we could help integrating those in PROJ/GDAL?</div><div><br></div><div>Thanks,</div><div>Yann<br></div><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
---------- Forwarded message ---------<br>
From: Nyall Dawson <<a href="mailto:nyall.dawson@gmail.com" target="_blank">nyall.dawson@gmail.com</a>><br>
Date: Tue, May 21, 2019 at 9:02 AM<br>
Subject: [PROJ] IAU2000 CRS definitions<br>
To: PROJ <<a href="mailto:proj@lists.osgeo.org" target="_blank">proj@lists.osgeo.org</a>><br>
<br>
<br>
Hi list,<br>
<br>
I see quite a lot of "IAU2000" CRS definitions on<br>
<a href="https://www.spatialreference.org/ref/?page=4&search=iau" rel="noreferrer" target="_blank">https://www.spatialreference.org/ref/?page=4&search=iau</a> which are not<br>
available in the proj database.<br>
<br>
Is there any plans to integrate these systems into proj?<br>
<br>
Nyall<br>
_______________________________________________<br>
PROJ mailing list<br>
<a href="mailto:PROJ@lists.osgeo.org" target="_blank">PROJ@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/proj" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/proj</a><br>
</blockquote></div></div>
</blockquote></div>
</div></div></div>