[gdal-dev] Setting up a source resolution for TMS

Even Rouault even.rouault at spatialys.com
Fri May 15 13:14:32 PDT 2020

On vendredi 15 mai 2020 19:23:30 CEST Denis Rykov wrote:
> Hello,
> I'm using gdal_translate to convert a certain area of TMS service (WMS
> driver) to GeoTIFF. Is there a way to set up a zoom level for GDAL to be
> used for building an image? By now GDAL picks zoom level with closest
> resolution. For example, if I want to get image of 1 meter resolution (
> "-tr 1 1") GDAL goes to zoom level that has 1.2 resolution. But it would be
> great to have a way to pick a zoom level with resolution not lower than the
> specified (0.6 in this case). Thanks.

You can use the generic open option -oo OVERVIEW_LEVEL=x

If the full resolution is zoom_level=18, and you're interested in zoom_level=15, then x = (18 
- 15) - 1 = 2


Spatialys - Geospatial professional services
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200515/cb1312a4/attachment.html>

More information about the gdal-dev mailing list