<div dir="ltr"><span style="font-family:Calibri,sans-serif;font-size:14.6667px">Hi Jean-Christophe,</span><br><div><span style="font-family:Calibri,sans-serif;font-size:14.6667px"><br></span></div><div><font face="Calibri, sans-serif"><span style="font-size:14.6667px">I've made a PR which I believe should fix the issue. Could you please take a look: </span></font><a href="https://github.com/mapproxy/mapproxy/pull/572">https://github.com/mapproxy/mapproxy/pull/572</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 9, 2022 at 1:47 PM Malapert Jean-Christophe <<a href="mailto:Jean-Christophe.Malapert@cnes.fr">Jean-Christophe.Malapert@cnes.fr</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 lang="EN-US">
<div class="gmail-m_5320182595834279513WordSection1">
<p class="MsoNormal">Dear All,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">My name is Jean-Christophe Malapert and I am engineer in CNES and also the co-chair of the Planetary DWG at OGC (<a href="https://www.ogc.org/projects/groups/planetarydwg" target="_blank">https://www.ogc.org/projects/groups/planetarydwg</a>).<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Currently, I am setting up a Surfaces Planetary data center in France with all scientific laboratories in Planetology.  My community (in general planetology) is divided in two parts :<u></u><u></u></p>
<p class="MsoNormal">-<span style="font-size:7pt">       <span class="gmail-m_5320182595834279513apple-converted-space"> </span></span>Scientific/engineers coming from Astronomy world and using IVOA standards (<span lang="FR"><a href="https://ivoa.net/" target="_blank"><span lang="EN-US" style="color:rgb(149,79,114)">https://ivoa.net</span></a></span>)<u></u><u></u></p>
<p class="MsoNormal">-<span style="font-size:7pt">       <span class="gmail-m_5320182595834279513apple-converted-space"> </span></span>Scientific/engineers coming from Geosciences world and using OGC standards<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Each world uses its own clients (e.g leaflet for OGC ; Aladin for IVOA) and no one wants to implement the access protocols of the other world. In this context, we have realized a study and a prototype to map the access standards from OGC/IVOA
 for images. Thanks to this prototype, QGIS/leaflet can access to astronomical data and Aladin can access to data distributed by WMS/WMTS servers.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">It would be great if :<u></u><u></u></p>
<p class="gmail-m_5320182595834279513MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7pt "Times New Roman"">       
</span></span></span><u></u>1/ the contribution could be integrated in mapproxy. I am attaching the study report (<span lang="FR"><a href="https://docs.google.com/document/d/1fJJYVNYg2uWhCaN3fxlBLg09vFND0YLLUiGRJ_fCh5c/edit?usp=sharing" target="_blank"><span lang="EN-US" style="color:rgb(149,79,114)">https://docs.google.com/document/d/1fJJYVNYg2uWhCaN3fxlBLg09vFND0YLLUiGRJ_fCh5c/edit?usp=sharing</span></a></span>)
 . <u></u><u></u></p>
<p class="gmail-m_5320182595834279513MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7pt "Times New Roman"">       
</span></span></span><u></u>2/ the Integration of the IAU CRS in mapproxy can be done<u></u><u></u></p>
<p class="gmail-m_5320182595834279513MsoListParagraph"><span lang="FR">services:<u></u><u></u></span></p>
<p class="gmail-m_5320182595834279513MsoListParagraph"><span lang="FR">  wms:<u></u><u></u></span></p>
<p class="gmail-m_5320182595834279513MsoListParagraph"><span lang="FR">    srs: ['IAU:1000']<u></u><u></u></span></p>
<p class="gmail-m_5320182595834279513MsoListParagraph"><span lang="FR">sources:<u></u><u></u></span></p>
<p class="gmail-m_5320182595834279513MsoListParagraph"><span lang="FR">  </span>test:<u></u><u></u></p>
<p class="gmail-m_5320182595834279513MsoListParagraph">    type: wms<u></u><u></u></p>
<p class="gmail-m_5320182595834279513MsoListParagraph">    supported_srs: ['IAU:1000']<u></u><u></u></p>
<p class="gmail-m_5320182595834279513MsoListParagraph">    req:<u></u><u></u></p>
<p class="gmail-m_5320182595834279513MsoListParagraph">      url: https://....<u></u><u></u></p>
<p class="gmail-m_5320182595834279513MsoListParagraph">      layers: blah<u></u><u></u></p>
<p class="gmail-m_5320182595834279513MsoListParagraph"><u></u> <u></u></p>
<p class="gmail-m_5320182595834279513MsoListParagraph">The statement srs: ['IAU:1000'] at the service level passes (if I don't put which, I see it as a possible CRS in the GetCapabilities, but without an associated BoundingBox), but not supported_srs: ['IAU:1000'] at the source level,
 which crashes with:<u></u><u></u></p>
<p style="margin-left:72pt"><i>  File "/home/even/spatialys/cnes/2021/hips/mapproxy/mapproxy/config/loader.py", line 804, in source<br>
    supported_srs=self.supported_srs(),<br>
  File "/home/even/spatialys/cnes/2021/hips/mapproxy/mapproxy/config/loader.py", line 578, in supported_srs<br>
    supported_srs = [SRS(code) for code in self.conf.get('supported_srs', [])]<br>
  File "/home/even/spatialys/cnes/2021/hips/mapproxy/mapproxy/config/loader.py", line 578, in <listcomp><br>
    supported_srs = [SRS(code) for code in self.conf.get('supported_srs', [])]<br>
  File "/home/even/spatialys/cnes/2021/hips/mapproxy/mapproxy/srs.py", line 96, in SRS<br>
    srs = _srs_impl(srs_code)<br>
  File "/home/even/spatialys/cnes/2021/hips/mapproxy/mapproxy/srs.py", line 320, in __init__<br>
    self.proj = CRS.from_epsg(epsg_num)<br>
  File "/home/even/spatialys/cnes/2021/hips/mapproxy/venv/lib/python3.8/site-packages/pyproj/crs/crs.py", line 370, in from_epsg<br>
    return cls.from_user_input(_prepare_from_epsg(code))<br>
  File "/home/even/spatialys/cnes/2021/hips/mapproxy/venv/lib/python3.8/site-packages/pyproj/crs/crs.py", line 479, in from_user_input<br>
    return cls(value, **kwargs)<br>
  File "/home/even/spatialys/cnes/2021/hips/mapproxy/venv/lib/python3.8/site-packages/pyproj/crs/crs.py", line 326, in __init__<br>
    self._local.crs = _CRS(self.srs)<br>
  File "pyproj/_crs.pyx", line 2352, in pyproj._crs._CRS.__init__<br>
pyproj.exceptions.CRSError: Invalid projection: epsg:1000: (Internal Proj Error: proj_create: crs not found)<u></u><u></u></i></p>
<p>               At some point MapProxy assumes that the CRS is an EPSG apparently.<u></u><u></u></p>
<p><b><u></u> <u></u></b></p>
<p><b>IAU CRS<u></u><u></u></b></p>
<p>IAU (International Astronomical Union) CRS is based on the report of this group
<a href="https://astrogeology.usgs.gov/groups/IAU-WGCCRE" target="_blank">https://astrogeology.usgs.gov/groups/IAU-WGCCRE</a>. Based on this report, the WKT-crs group (<a href="https://www.ogc.org/standards/wkt-crs" target="_blank">https://www.ogc.org/standards/wkt-crs</a>)  from OGC has
 modified (a simple addition) its standard in order to be compliant with the CRS defined in IAU. In addition, we are working at OGC to integrate the IAU crs within the OGC standards (e.g :
<a href="https://github.com/opengeospatial/NamingAuthority/issues/113" target="_blank">https://github.com/opengeospatial/NamingAuthority/issues/113</a>)
<u></u><u></u></p>
<p>In addition, proj has now IAU CRS definition : <a href="https://github.com/OSGeo/PROJ/pull/2876" target="_blank">
https://github.com/OSGeo/PROJ/pull/2876</a> . Same thing for GDAL : <a href="https://github.com/OSGeo/gdal/pull/5287" target="_blank">
https://github.com/OSGeo/gdal/pull/5287</a>. Based on this pull request, mapserver can also accept SRS=IAU:xxxx as input parameter for WMS requests
<a href="https://github.com/MapServer/MapServer/pull/6484" target="_blank">https://github.com/MapServer/MapServer/pull/6484</a> . The last version of QGIS also integrates the IAU CRS.<u></u><u></u></p>
<p>Please let me know if you could integrate these 2 features in your roadmap and if you need any help from CNES to help you
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Best regards,<u></u><u></u></p>
<p class="MsoNormal">Jean-Christophe<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<table border="0" cellspacing="0" cellpadding="0" width="0" style="width:402.85pt">
<tbody>
<tr style="height:44.7pt">
<td width="106" style="width:94.35pt;padding:0cm;height:44.7pt">
<p class="MsoNormal" align="center" style="text-align:center"><span style="font-family:Arial,sans-serif"><img border="0" width="106" height="142" style="width: 1.1083in; height: 1.4833in;" id="gmail-m_5320182595834279513Image_x0020_1" src="cid:17fa9fc6a705b16b21"><u></u><u></u></span></p>
</td>
<td width="508" style="width:308.5pt;padding:0cm;height:44.7pt">
<table border="0" cellspacing="0" cellpadding="0" width="0" style="width:380.95pt">
<tbody>
<tr style="height:4.9pt">
<td width="508" style="width:380.95pt;padding:0cm;height:4.9pt">
<p class="MsoNormal"><b><span style="font-family:Arial,sans-serif;color:rgb(0,81,145)">Jean-Christophe MALAPERT<u></u><u></u></span></b></p>
</td>
</tr>
<tr style="height:3.4pt">
<td width="508" style="width:380.95pt;padding:0cm;height:3.4pt">
<p class="MsoNormal"><b><span lang="FR" style="font-size:7.5pt;font-family:Arial,sans-serif;color:rgb(0,81,145);letter-spacing:0.6pt">Expert Dev. Segments Sols Scientifiques
<u></u><u></u></span></b></p>
</td>
</tr>
<tr style="height:4.25pt">
<td width="508" style="width:380.95pt;padding:11.25pt 0cm 0cm;height:4.25pt">
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:Arial,sans-serif;color:rgb(0,81,145);letter-spacing:0.6pt">DTN/CD/SC<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:Arial,sans-serif;color:rgb(0,81,145);letter-spacing:0.6pt">18 avenue Edouard Belin 31401 Toulouse Cedex 9<u></u><u></u></span></p>
</td>
</tr>
<tr style="height:6.3pt">
<td width="508" style="width:380.95pt;padding:0cm;height:6.3pt">
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:rgb(0,81,145)"><img border="0" width="10" height="10" style="width: 0.1083in; height: 0.1083in;" id="gmail-m_5320182595834279513Image_x0020_2" src="cid:17fa9fc6a707745b42" alt="http://publi.portail.cnes.fr/sites/CNES_Pratique/DocumentsCNES/signature%20version%20finale/signature_cnes_fr_externe_fichiers/phone.png"> </span><span style="font-size:7.5pt;font-family:Arial,sans-serif;color:rgb(0,81,145)">+33
 (0)5 61 28 14 45</span><span style="font-size:7.5pt;font-family:Arial,sans-serif;color:rgb(0,81,145)"> /
<img border="0" width="10" height="10" style="width: 0.1083in; height: 0.1083in;" id="gmail-m_5320182595834279513Image_x0020_3" src="cid:17fa9fc6a709374b63"> +33 (0)6 42 94 63 10</span><span style="font-size:12pt;font-family:Arial,sans-serif;color:rgb(0,81,145)"><u></u><u></u></span></p>
</td>
</tr>
<tr style="height:5.95pt">
<td width="508" style="width:380.95pt;padding:0cm;height:5.95pt">
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:rgb(0,81,145)"><img border="0" width="10" height="10" style="width: 0.1083in; height: 0.1083in;" id="gmail-m_5320182595834279513Image_x0020_4" src="cid:17fa9fc6a71afa3b84" alt="http://publi.portail.cnes.fr/sites/CNES_Pratique/DocumentsCNES/signature%20version%20finale/signature_cnes_fr_externe_fichiers/email.png"> </span><span style="font-size:7.5pt;font-family:Arial,sans-serif;color:rgb(0,81,145)"><a href="mailto:jean-christophe.malapert@cnes.fr" target="_blank">jean-christophe.malapert@cnes.fr</a></span><span style="font-family:Arial,sans-serif;color:rgb(0,81,145)">
<u></u><u></u></span></p>
</td>
</tr>
<tr style="height:6.3pt">
<td width="508" style="width:380.95pt;padding:0cm;height:6.3pt">
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:rgb(0,81,145)"><img border="0" width="10" height="10" style="width: 0.1083in; height: 0.1083in;" id="gmail-m_5320182595834279513Image_x0020_5" src="cid:17fa9fc6a711f3c04f5" alt="http://publi.portail.cnes.fr/sites/CNES_Pratique/DocumentsCNES/signature%20version%20finale/signature_cnes_fr_externe_fichiers/web.png"> </span><span style="font-size:7.5pt;font-family:Arial,sans-serif;color:rgb(0,81,145);letter-spacing:0.6pt"><a href="http://cnes.fr/" target="_blank"><span style="color:rgb(0,81,145)">cnes.fr</span></a></span><span style="font-family:Arial,sans-serif;color:rgb(0,81,145)">
<u></u><u></u></span></p>
</td>
</tr>
<tr style="height:1.75pt">
<td width="508" style="width:380.95pt;padding:0cm;height:1.75pt"></td>
</tr>
<tr style="height:7.7pt">
<td width="508" style="width:380.95pt;padding:0cm;height:7.7pt">
<p class="MsoNormal" style="line-height:115%"><span lang="FR"><a href="https://www.facebook.com/CNESFrance/" target="_blank"><span lang="EN-US" style="font-family:Arial,sans-serif;color:blue;text-decoration:none"><img border="0" width="15" height="15" style="width: 0.1583in; height: 0.1583in;" id="gmail-m_5320182595834279513Image_x0020_6" src="cid:17fa9fc6a7120fef516" alt="http://publi.portail.cnes.fr/sites/CNES_Pratique/DocumentsCNES/signature%20version%20finale/signature_cnes_fr_externe_fichiers/facebook.png"></span></a></span><span style="font-family:Arial,sans-serif"> 
</span><span lang="FR"><a href="https://www.instagram.com/cnes_france/" target="_blank"><span lang="EN-US" style="font-family:Arial,sans-serif;color:blue;text-decoration:none"><img border="0" width="15" height="15" style="width: 0.1583in; height: 0.1583in;" id="gmail-m_5320182595834279513Image_x0020_7" src="cid:17fa9fc6a7122c1e537" alt="http://publi.portail.cnes.fr/sites/CNES_Pratique/DocumentsCNES/signature%20version%20finale/signature_cnes_fr_externe_fichiers/instagram.png"></span></a></span><span style="font-family:Arial,sans-serif"> 
</span><span lang="FR"><a href="https://twitter.com/cnes" target="_blank"><span lang="EN-US" style="font-family:Arial,sans-serif;color:blue;text-decoration:none"><img border="0" width="15" height="15" style="width: 0.1583in; height: 0.1583in;" id="gmail-m_5320182595834279513Image_x0020_8" src="cid:17fa9fc6a712484d558" alt="http://publi.portail.cnes.fr/sites/CNES_Pratique/DocumentsCNES/signature%20version%20finale/signature_cnes_fr_externe_fichiers/twitter.png"></span></a></span><span style="font-size:12pt;line-height:115%;font-family:Arial,sans-serif"><u></u><u></u></span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span lang="FR"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="FR"><u></u> <u></u></span></p>
</div>
</div>

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