(MapRenderer.render_map): Check if scale has gone to 0 which is a serious problem. abort. (MapRenderer.draw_raster_layer): Catch IOError seperately and print the error from GDAL.