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
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to