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

Andrey VI andrey_vi at list.ru
Mon Oct 6 00:59:27 PDT 2025


Hello.
 
A few years ago a command like this:
gdal_rasterize -burn 0 shape.shp hillshade.tif
worked.
But with the latest GDAL it’s not:
gdal_rasterize -burn 0 shape.shp hillshade.tif
ERROR 1: Size and resolution are missing
 
gdal_rasterize  examples section  of GDAL documentation includes 2 examples without size and resolution options.
This means that to use the  gdal_rasterize , you first need to know the raster size or resolution. This is inconvenient.
 
Is this a bug or an intentional change?
--
Andrey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20251006/c89a1c4a/attachment.htm>


More information about the gdal-dev mailing list