[gdal-dev] gdal_rasterize processed GTiff filesize question
Andrey VI
andrey_vi at list.ru
Tue Mar 19 05:43:26 PDT 2024
Hello.
I’m using gdal_rasterize to remove some data from DEM (Int16) and hillshade (Byte) rasters with shape-file, like this:
gdal_rasterize -burn -32768 shape.shp dem.tif and gdal_rasterize -burn 0 shape.shp hillshade.tif
Both DEM and hillshade GTiffs created with -co COMPRESS=LZW -co TILED=YES options. After processing with gdal_rasterize the size of GTiffs becomes 1.5 times larger . Why it happens? I assumed that it should be the other way around, because a significant portion of the data is replaced with the same values and should be compressed well.
Andrey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240319/00e5e885/attachment.htm>
More information about the gdal-dev
mailing list