[gdal-dev] gdal_translate issues downloading GeoTIFF with TMS/WMTS/AGS

Stefan Keller sfkeller at gmail.com
Mon May 30 06:01:49 PDT 2016

My goal is to download a GeoTIFF with highest resolution over a
small(!) region [see 1] out of a raster tile server/service.

I have two issues with this command which uses AGS (see [2]; could be
any other WMTS or TMS):

gdal_translate -of GTiff gdal_tiles_openstreetmap.xml osm_mapnik3.tif
-projwin 8.810788393 47.2283918446 8.8263881207 47.221163925
-projwin_srs epsg:4326 -co TILED=yes -co COMPRESS=JPEG -tr 0.1 0.1

1. What I get, is a result made of tiles from zoom level 17 or so. But
I'd like to get the highest resolution i.e. from zoom level 19 (and
"-tr 0.1 0.1" does not help with that): How can I do that?

2. Is there an option to slow down http requests (like 10 per sec.) in
order to save resources of the service? (Should I write an issue?)

(Finally I will reproject the GeoTIFF to a local SRS using gdalwarp.)


[1] http://tools.geofabrik.de/calc/#type=geofabrik_standard&bbox=8.810788393,47.221163925,8.8263881207,47.2283918446&tab=1&proj=EPSG:4326&places=2

[2] --- ::: File gdal_tiles_openstreetmap.xml ::: --
    <Service name="AGS">

More information about the gdal-dev mailing list