<HTML><BODY><div><div id="style_17108518540727893310_BODY"><div><div><span style="max-width: 2150px; --left-column-width: 252px; --right-column-width: 252px; --sidebar-column-width: 400px;">Hello.</span></div><div><span style="max-width: 2150px; --left-column-width: 252px; --right-column-width: 252px; --sidebar-column-width: 400px;"> </span></div><div><span style="max-width: 2150px; --left-column-width: 252px; --right-column-width: 252px; --sidebar-column-width: 400px;">I’m using gdal_rasterize to remove some data from DEM (Int16) and hillshade (Byte) rasters with shape-file, like this:</span></div><div><span style="max-width: 2150px; --left-column-width: 252px; --right-column-width: 252px; --sidebar-column-width: 400px;">gdal_rasterize -burn -32768 shape.shp dem.tif and gdal_rasterize -burn 0 shape.shp hillshade.tif</span></div><div><span style="max-width: 2150px; --left-column-width: 252px; --right-column-width: 252px; --sidebar-column-width: 400px;">Both DEM and hillshade GTiffs created with -co COMPRESS=LZW -co TILED=YES options. After processing with gdal_rasterize the <span lang="en"><span><span>size of GTiffs becomes 1.5 times larger</span></span></span>. Why it happens? <span lang="en"><span><span>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.</span></span></span></span></div><div><span style="max-width: 2150px; --left-column-width: 252px; --right-column-width: 252px; --sidebar-column-width: 400px;"> </span></div><div><span style="max-width: 2150px; --left-column-width: 252px; --right-column-width: 252px; --sidebar-column-width: 400px;">Andrey</span></div></div></div></div></BODY></HTML>