<div dir="ltr"><blockquote style="margin:0 0 0 40px;border:none;padding:0px">That's why I favor Even's option to introduce open option LIST_ALL_SRS=YES/NO.</blockquote><div><br></div><div>Or any other solution that simplify the process of choosing layer in the specified SRS, e.g. dedicated function that returns list of supported SRS like in WFS...?</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">wt., 10 wrz 2024 o 15:31 Michał Kowalczuk <<a href="mailto:michkowalczuk@gmail.com">michkowalczuk@gmail.com</a>> napisał(a):<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">Thank you for your feedback. My comments are below:<br><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><i><br></i></div><div><i>It means that there are tens of thousands WMS services which support 6782 different projections for each layer (checked from Geoserver version 2.25.3). I would not like them all to be reported as subdatasets.</i></div></blockquote><div dir="ltr">I meant to use CRSs only reported by GetCapabilities. I haven't seen that GetCapabilities returns so many (6782) possible projections...<div><br></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div dir="ltr"><div><div><i>WMS standard also does not define any default CRS and the first one on the list in GetCapabilities does not need to be the best.</i></div></div></div></blockquote><div dir="ltr"><div>Therefore, the current form of the generating subdatasets names method for WMS driver is even more useless, if we have a non-default (not the best) projection for the data.</div><div><br></div><div>And the only good way to work with it is to parse XML and generate paths manually... </div><div><br></div><div>That's why I favor Even's option to introduce open option LIST_ALL_SRS=YES/NO.<br></div><div><br></div><div>Any more thoughts? </div><div><br></div><div>Michał Kowalczuk</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">wt., 10 wrz 2024 o 15:03 Rahkonen Jukka <<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi" target="_blank">jukka.rahkonen@maanmittauslaitos.fi</a>> napisał(a):<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>
<div lang="FI">
<div>
<p class="MsoNormal"><span lang="EN-US">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">WMTS typically supports a rather small number of tilematrices and tiles are usually cached, so it makes a lot of sense to advertise the available matrices and utilize them. On the other
hand WMS maps are created on-the-fly and there is very low technical cost on the server side to support however many projections. WMS standard also does not define any default CRS and the first one on the list in GetCapabilities does not need to be the best.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I guess that Geoserver is the most common WMS server in the world and amazingly many Geoservers run with the default settings. It means that there are tens of thousands WMS services
which support 6782 different projections for each layer (checked from Geoserver version 2.25.3). I would not like them all to be reported as subdatasets.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I can see that ogrinfo and the OGC API Features driver report the list of supported projections. Test with ogrinfo OAPIF:<a href="https://ogc-api.nrw.de/inspire-us-feuerwehr" target="_blank">https://ogc-api.nrw.de/inspire-us-feuerwehr</a> -al -so shows “Supported
SRS: OGC:CRS84, EPSG:25832, EPSG:25833, EPSG:4258, EPSG:4326, EPSG:3395, EPSG:3857, EPSG:3034, EPSG:3035”<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Something similar might be an option for gdalinfo, but still about 6782 EPSG codes per layer is too much to be viewed by default. Maybe the CRS list could be reported under some metadata
domain that user could read on demand?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">-Jukka Rahkonen-<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b>Lähettäjä:</b> gdal-dev <<a href="mailto:gdal-dev-bounces@lists.osgeo.org" target="_blank">gdal-dev-bounces@lists.osgeo.org</a>>
<b>Puolesta </b>Michal Kowalczuk via gdal-dev<br>
<b>Lähetetty:</b> tiistai 10. syyskuuta 2024 15.15<br>
<b>Vastaanottaja:</b> <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<b>Aihe:</b> Re: [gdal-dev] WMS supported SRS<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">I found that there was a similar issue in 2021 without any specific answer:<u></u><u></u></p>
<div>
<p class="MsoNormal"><a href="https://www.mail-archive.com/gdal-dev@lists.osgeo.org/msg35549.html" target="_blank">https://www.mail-archive.com/gdal-dev@lists.osgeo.org/msg35549.html</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I wonder if getting SUBDATASETS shouldn't return the result in a similar way as it does for WMTS service,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">where GDAL generates paths to all layer/tilematrix/tilematrixset combination.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">For example if layer is available in 3 SRS, GDAL produces 3 subdatasets, so using only SUBDATASE_NAME property user has access to all map services shared by WMTS server.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">In my opinion, GDAL should use the same approach for WMS. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Does anyone object?<u></u><u></u></p>
</div>
<p class="MsoNormal">I will then submit a new feature request/bug report.<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Best regards and have a nice day<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Michał Kowalczuk<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">pon., 9 wrz 2024 o 16:17 Michał Kowalczuk <<a href="mailto:michkowalczuk@gmail.com" target="_blank">michkowalczuk@gmail.com</a>> napisał(a):<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<div>
<p class="MsoNormal">Does GDAL provides a method to get supported spatial reference systems by WMS service?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><b>GDALGetMetadata(SUBDATASETS) </b>generate links only for the first (default) SRS from GetCapabilities, so this won't be helpful.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Working with WFS I can get supported SRS using OGR <b>OGR_L_GetSupportedSRSList </b>function.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Does GDAL offers something similar for WMS, or should I get this information from GetCapabilities XML by myself?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Regards,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Michal <u></u><u></u></p>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div></blockquote></div></div>
</blockquote></div>