Make gdal raster layer reproject safer