[gdal-dev] GDAL WMTS get tiles no documentation

Rahkonen Jukka jukka.rahkonen at maanmittauslaitos.fi
Fri May 31 07:08:43 PDT 2024


(resending, need to cut old discussion due to too many bytes in the body)

Hi,

gdalinfo "WMTS:http://maps.wien.gv.at/wmts/1.0.0/WMTSCapabilities.xml,layer=fmzk3dviewer"
Driver: WMTS/OGC Web Map Tile Service
Files: none associated
Size is 305719, 257379

The unit of size is pixels. You used -srcwin 1820157 6144777 512 512, with offsets far outsize the layer. This returns me something greenish.

gdal_translate "WMTS:http://maps.wien.gv.at/wmts/1.0.0/WMTSCapabilities.xml,layer=fmzk3dviewer" -srcwin 100000 100000 512 512 tile.jpg

-Jukka Rahkonen-


Lähettäjä: Michał Kowalczuk <michkowalczuk at gmail.com<mailto:michkowalczuk at gmail.com>>
Lähetetty: perjantai 31. toukokuuta 2024 16.58
Vastaanottaja: Rahkonen Jukka <jukka.rahkonen at maanmittauslaitos.fi<mailto:jukka.rahkonen at maanmittauslaitos.fi>>
Kopio: Even Rouault <even.rouault at spatialys.com<mailto:even.rouault at spatialys.com>>; gdal-dev at lists.osgeo.org<mailto:gdal-dev at lists.osgeo.org>
Aihe: Re: [gdal-dev] GDAL WMTS get tiles no documentation

As you proposed I tested gdal_translate utility but for the following sample command I get an empty image (tested with jpg and png)

gdal_translate "WMTS:http://maps.wien.gv.at/wmts/1.0.0/WMTSCapabilities.xml,layer=fmzk3dviewer" -srcwin 1820157 6144777 512 512 tile.jpg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240531/f494a789/attachment.htm>


More information about the gdal-dev mailing list