Great! Thank you. I also found out that the same result can be achieved with gdalwarp and "-ovr" option. Is there any advantages of using gdalwarp instead of gdal_translate to convert partial extent of TMS service to an image if reprojection is not required?
On Fri, May 15, 2020 at 10:14 PM Even Rouault <[email protected]> wrote: > 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 > > > > Even > > > > -- > > Spatialys - Geospatial professional services > > http://www.spatialys.com >
_______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
