<div dir="ltr">Great! Thank you. I also found out that the same result can be achieved with gdalwarp and "-ovr" option.<div>Is there any advantages of using gdalwarp instead of gdal_translate to convert <span style="font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13.2px;text-align:justify">partial extent of TMS service to an image if reprojection is not required?</span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 15, 2020 at 10:14 PM Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div style="font-family:monospace;font-size:9pt;font-weight:400;font-style:normal">
<p style="margin:0px;text-indent:0px">On vendredi 15 mai 2020 19:23:30 CEST Denis Rykov wrote:</p>
<p style="margin:0px;text-indent:0px">> Hello,</p>
<p style="margin:0px;text-indent:0px">> </p>
<p style="margin:0px;text-indent:0px">> I'm using gdal_translate to convert a certain area of TMS service (WMS</p>
<p style="margin:0px;text-indent:0px">> driver) to GeoTIFF. Is there a way to set up a zoom level for GDAL to be</p>
<p style="margin:0px;text-indent:0px">> used for building an image? By now GDAL picks zoom level with closest</p>
<p style="margin:0px;text-indent:0px">> resolution. For example, if I want to get image of 1 meter resolution (</p>
<p style="margin:0px;text-indent:0px">> "-tr 1 1") GDAL goes to zoom level that has 1.2 resolution. But it would be</p>
<p style="margin:0px;text-indent:0px">> great to have a way to pick a zoom level with resolution not lower than the</p>
<p style="margin:0px;text-indent:0px">> specified (0.6 in this case). Thanks.</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">You can use the generic open option -oo OVERVIEW_LEVEL=x</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">If the full resolution is zoom_level=18, and you're interested in zoom_level=15, then x = (18 - 15) - 1 = 2</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">Even</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">-- </p>
<p style="margin:0px;text-indent:0px">Spatialys - Geospatial professional services</p>
<p style="margin:0px;text-indent:0px"><a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a></p></div></blockquote></div>