Skip to main content
error may come up running gdalwarp by itself (expanded question to include both possibilities)
Source Link
rudivonstaden
  • 5.4k
  • 4
  • 27
  • 43

When I try to crop a raster using QGIS Clipper tool, I get the following error message: ERROR 1: Attempt to create 0x0 dataset is illegal,sizes must be larger than zero.. Why?

The code QGIS generated to perform the clip was as follows: $ gdalwarp -q -cutline <clip_mask>.shp -crop_to_cutline -of GTiff <input_raster>.tif <output_raster>.tif

The same error message is generated if I try to run the gdalwarp command by itself from the commandline.

When I try to crop a raster using QGIS Clipper tool, I get the following error message: ERROR 1: Attempt to create 0x0 dataset is illegal,sizes must be larger than zero.. Why?

The code QGIS generated to perform the clip was as follows: $ gdalwarp -q -cutline <clip_mask>.shp -crop_to_cutline -of GTiff <input_raster>.tif <output_raster>.tif

When I try to crop a raster using QGIS Clipper tool, I get the following error message: ERROR 1: Attempt to create 0x0 dataset is illegal,sizes must be larger than zero.. Why?

The code QGIS generated to perform the clip was as follows: $ gdalwarp -q -cutline <clip_mask>.shp -crop_to_cutline -of GTiff <input_raster>.tif <output_raster>.tif

The same error message is generated if I try to run the gdalwarp command by itself from the commandline.

Source Link
rudivonstaden
  • 5.4k
  • 4
  • 27
  • 43

error message when clipping raster with vector layer

When I try to crop a raster using QGIS Clipper tool, I get the following error message: ERROR 1: Attempt to create 0x0 dataset is illegal,sizes must be larger than zero.. Why?

The code QGIS generated to perform the clip was as follows: $ gdalwarp -q -cutline <clip_mask>.shp -crop_to_cutline -of GTiff <input_raster>.tif <output_raster>.tif