[Qgis-user] QGIS 3 clipping raster with a polygon - problem

Andre Joost andre+joost at nurfuerspam.de
Thu May 24 07:32:37 PDT 2018


Am 24.05.18 um 15:25 schrieb David Addy:
> Hi Nyall,
> Thanks very much for looking at this.
> The two versions are as follows:
>
>  From QGIS 2.18.16 I get:
> gdalwarp -q -cutline "D:/My Pictures/QGIS Projects/Payne
> calibration/payne_clipper.shp" -tr 0.639640252898 0.639640252898 -of GTiff
> "D:/My Pictures/QGIS Projects/Payne calibration/payne_modified.tif" "D:/My
> Pictures/QGIS Projects/Payne calibration/p_clipped_Q2A.tif"
>
>  From QGIS 3.0.2 I get :
> gdalwarp -ot Float32 -of GTiff -cutline path_to_data_file -crop_to_cutline
> -dstnodata 0.0 "D:\\My Pictures\\QGIS Projects\\Payne
> calibration\\payne_modified.tif"
> C:/Users/DJAddy/AppData/Local/Temp/processing_fd479b6503d44fbcb53887e62e4cf315/f36463c35cc34f29b240d30ad811d6fd/OUTPUT.tif
>

You can put these commands into .bat files and run them in the OSGEO4W 
shell. You might get error messages you don't see inside QGIS.

HTH,
Andre Joost





More information about the Qgis-user mailing list