I've got a geopackage which is a set of polygons covering Australia. I am trying to turn them into a raster using gdal_rasterize command. I get errors which I don't know how to solve.
The command I use is:
gdal_rasterize --config CHECK_DISK_FREE_SPACE NO -co "PREDICTOR=2" -co "COMPRESS=LZW" -of GTiff -co BIGTIFF=YES -co TILED=YES -co NUM_THREADS=ALL_CPUS -ot UInt16 -a my_layer -tr 0.000277777781132076 0.000277777781132076 -a_nodata 0 "c:/tmp/input.gpkg" "c:/tmp/output.tif"
The errors I get are a bit jumbled in the cmd line output, but seem to consist of mainly this repeated a few times
ERROR 1: Using code not yet in table
band 1: IReadBlock failed at X offset 496, Y offset 312
ERROR 1: TIFFReadEncodedTile() failed.
Does anyone have a suggestion to fix this?