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

Even Rouault even.rouault at spatialys.com
Mon May 30 08:20:23 PDT 2016


Stefan,

> 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?

See below comments in the XML

> 
> 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?)

AFAIK there's no option for limitation of the number of requests in this 
driver.

Even

> 
> (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,4
> 7.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_Imag
> ery/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>

--> This is a unusual size for a X/Y/Z tiling system. For zoom level 19 and 
tiles of size 256, that should be 134217728 ( 256 * 2^19)

>     </DataWindow>

>     <BlockSizeX>512</BlockSizeX>
>     <BlockSizeY>512</BlockSizeY>

--> should be 256

>     <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>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list