(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 
<michkowalc...@gmail.com<mailto:michkowalc...@gmail.com>>
Lähetetty: perjantai 31. toukokuuta 2024 16.58
Vastaanottaja: Rahkonen Jukka 
<jukka.rahko...@maanmittauslaitos.fi<mailto:jukka.rahko...@maanmittauslaitos.fi>>
Kopio: Even Rouault 
<even.roua...@spatialys.com<mailto:even.roua...@spatialys.com>>; 
gdal-dev@lists.osgeo.org<mailto:gdal-dev@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
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to