[gdal-dev] WMTS ResourceURL

Michał Kowalczuk michkowalczuk at gmail.com
Tue Dec 10 05:48:31 PST 2024


Dear GDAL friends,

The following WMTS server:
*https://maps.wien.gv.at/wmts/1.0.0/WMTSCapabilities.xml
<https://maps.wien.gv.at/wmts/1.0.0/WMTSCapabilities.xml>*
for layer *fmzk3dviewer*
provides 5 resource URLS:




*<ResourceURL format="image/png"
template="http://maps1.wien.gv.at/wmts/fmzk3dviewer/{Style}/google3857/{TileMatrix}/{TileRow}/{TileCol}.png
<http://maps1.wien.gv.at/wmts/fmzk3dviewer/{Style}/google3857/{TileMatrix}/{TileRow}/{TileCol}.png>"
resourceType="tile"/><ResourceURL format="image/png"
template="http://maps2.wien.gv.at/wmts/fmzk3dviewer/{Style}/google3857/{TileMatrix}/{TileRow}/{TileCol}.png
<http://maps2.wien.gv.at/wmts/fmzk3dviewer/{Style}/google3857/{TileMatrix}/{TileRow}/{TileCol}.png>"
resourceType="tile"/><ResourceURL format="image/png"
template="http://maps3.wien.gv.at/wmts/fmzk3dviewer/{Style}/google3857/{TileMatrix}/{TileRow}/{TileCol}.png
<http://maps3.wien.gv.at/wmts/fmzk3dviewer/{Style}/google3857/{TileMatrix}/{TileRow}/{TileCol}.png>"
resourceType="tile"/><ResourceURL format="image/png"
template="http://maps4.wien.gv.at/wmts/fmzk3dviewer/{Style}/google3857/{TileMatrix}/{TileRow}/{TileCol}.png
<http://maps4.wien.gv.at/wmts/fmzk3dviewer/{Style}/google3857/{TileMatrix}/{TileRow}/{TileCol}.png>"
resourceType="tile"/><ResourceURL format="image/png"
template="http://maps.wien.gv.at/wmts/fmzk3dviewer/{Style}/google3857/{TileMatrix}/{TileRow}/{TileCol}.png
<http://maps.wien.gv.at/wmts/fmzk3dviewer/{Style}/google3857/{TileMatrix}/{TileRow}/{TileCol}.png>"
resourceType="tile"/>*

GDAL uses the first from the list:
*http://maps1.wien.gv.at/wmts/fmzk3dviewer.
<http://wien.gv.at/wmts/fmzk3dviewer.>..*
which from unknown reasons fails.

For the same server QGIS choses the right (the last from the list):
*http://maps.wien.gv.at/wmts/fmzk3dviewer.
<http://wien.gv.at/wmts/fmzk3dviewer.>..*
which works.

Does GDAL try to change the resource URL if another fails?
Is there a possibility to control it?

https://maps.wien.gv.at/wmts/fmzk3dviewer/pastell/google3857/13/2837/4472.png
https://maps1.wien.gv.at/wmts/fmzk3dviewer/pastell/google3857/13/2837/4472.png

Best regards,
Michał Kowalczuk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20241210/ab7d6444/attachment.htm>


More information about the gdal-dev mailing list