[gdal-dev] gdal_rasterize ERROR 1: Size and resolution are missing

Andrea Giudiceandrea andreaerdna at libero.it
Mon Oct 6 01:37:36 PDT 2025


Il 06/10/2025 09:59, Andrey VI via gdal-dev ha scritto:
> Hello.
> A few years ago a command like this:
> gdal_rasterize -burn 0 shape.shp hillshade.tif
> worked.

Hi Andrey VI,
probably such command worked because the hillshade.tif files already 
existed.

If the output raster file doesn't exist (i.e. you want to create a new 
raster file), then "the resolution or size must be specified using the 
-tr or -ts option", as explained in the gdal_rasterize docs.

Andrea


More information about the gdal-dev mailing list