[gdal-dev] gdalwarp bug with version GDAL 2.2.1, released 2017/06/23

Vincent Thierion vincent.thierion at inra.fr
Mon May 28 03:49:33 PDT 2018


Hello,


I observed a gdalwarp problem with a little extent ogr vector file on GDAL 2.2.1, released 2017/06/23.


I try the following command :


gdalwarp -overwrite -cutline vect.shp -crop_to_cutline -cwhere "FID=0" rast.tif rast_0.tif


the command begins but never finish :


Creating output file that is 15P x 1L.
Processing input file rast.tif.
Using internal nodata values (e.g. 0) for image rast.tif.
Copying nodata values from source rast.tif to destination rast_0.tif.
0


I tried the same command on GDAL 2.0.1, released 2015/09/15 without any problem.


With GDAL 2.2.1, released 2017/06/23, I get around this problem by using the option -tap


gdalwarp -tap -tr 10 10 -overwrite -cutline vect.shp -crop_to_cutline -cwhere "FID=0" rast.tif rast_0.tif


But it's not a satisfactory solution, too large ouput raster file.


You can upload data here :

https://filesender.renater.fr/?s=download&token=2059f4d0-a06e-b9bf-85d7-22ddcd2ec0e3


Thanks in advance


Vincent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20180528/47936e57/attachment.html>


More information about the gdal-dev mailing list