[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.)
:Stefan
[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 ::: --
<GDAL_WMS>
<Service name="AGS">
<ServerUrl>https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer</ServerUrl>
<ImageFormat>png32</ImageFormat>
<Transparent>true</Transparent>
<ImageSR>102100</ImageSR>
<Layers></Layers>
<BBoxOrder>xyXY</BBoxOrder>
</Service>
<DataWindow>
<UpperLeftX>-20037508.34278700</UpperLeftX>
<UpperLeftY>20037508.34278700</UpperLeftY>
<LowerRightX>20037508.34278103</LowerRightX>
<LowerRightY>-20037508.34278103</LowerRightY>
<SizeX>40075016</SizeX>
<SizeY>40075016</SizeY>
</DataWindow>
<BlockSizeX>512</BlockSizeX>
<BlockSizeY>512</BlockSizeY>
<Projection>EPSG:3857</Projection>
<BandsCount>4</BandsCount>
<ClampRequests>true</ClampRequests>
<UserAgent>Mozilla/5.0</UserAgent>
<ZeroBlockHttpCodes>499,204,404</ZeroBlockHttpCodes>
<ZeroBlockOnServerException>true</ZeroBlockOnServerException>
</GDAL_WMS>
More information about the gdal-dev
mailing list