<div dir="ltr">Hey all,<div><br></div><div>So if you try to launch gdal2tiles.py with an asked tile level that is from very high, so that the output should be a single tile where not a single pixel value of the original raster is displayed, gdal2tiles.py simply crashes (stack trace) when trying to write nothing in the output file</div><div><br></div><div>What would you prefer as the "fixed" behaviour?</div><div>- some message is displayed on the stderr and then the script exits with a non-zero exit code</div><div>- we generate a single empty (transparent tile) and complete successfully?</div><div><br></div><div><br></div><div>To reproduce, you can do this on trunk (with z = 10 or smaller)</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="monospace, monospace">python gdal/swig/python/scripts/gdal2tiles.py autotest/pyscripts/data/test_bounds_close_to_tile_bounds_x.vrt /tmp/out_small -z 10 -v</font></blockquote><div><br></div><div>(note that starting at a lower level and generating higher level tiles by downsampling works and generates 1 empty tile --> maybe we should do the same</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="monospace, monospace">python gdal/swig/python/scripts/gdal2tiles.py autotest/pyscripts/data/test_bounds_close_to_tile_bounds_x.vrt /tmp/out_small -z 10 -v</font></blockquote><div>)<br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><font color="#999999"><br></font></div><div><font color="#999999">---</font></div><div><font color="#999999">Gregory Bataille</font><br></div></div></div></div>
</div></div>