Hey all, 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
What would you prefer as the "fixed" behaviour? - some message is displayed on the stderr and then the script exits with a non-zero exit code - we generate a single empty (transparent tile) and complete successfully? To reproduce, you can do this on trunk (with z = 10 or smaller) > python gdal/swig/python/scripts/gdal2tiles.py > autotest/pyscripts/data/test_bounds_close_to_tile_bounds_x.vrt > /tmp/out_small -z 10 -v (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 > python gdal/swig/python/scripts/gdal2tiles.py > autotest/pyscripts/data/test_bounds_close_to_tile_bounds_x.vrt > /tmp/out_small -z 10 -v ) --- Gregory Bataille
_______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
