<div dir="ltr">Hi,<div>I have a 4 band uncompressed geotiff ( NAIP data for North Carolina, USA) that is 193 MB</div><div>I've been going over the compression options for gdal_translate  geotiffs and I note the following:<br></div><div><span id="docs-internal-guid-fda387c2-cbe3-2908-f4f2-34c7d374b3b7"><span style="font-size:15px;font-family:Cambria;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">gdal_translate -of “GTIFF” -co “COMPRESS=PACKBITS” gives me a file that is 194MB in size</span></span><br></div><div><span id="docs-internal-guid-fda387c2-cbe4-1281-eb8b-a5d3769b9f88"><span style="font-size:15px;font-family:Cambria;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">gdal_translate -of “GTIFF” -co “COMPRESS=LZW”  gives me a file that is 232MB in size</span></span><span><span style="font-size:15px;font-family:Cambria;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"><br></span></span></div><div><span id="docs-internal-guid-fda387c2-cbe7-31e1-3e7c-f4ff829f0aa8"><span style="font-size:15px;font-family:Cambria;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">gdal_translate -of “GTIFF” -co “COMPRESS=DEFLATE” gives me a file that is  177MB in size</span></span><br></div><div><div><br></div><div>Of the above  Lossless compression options for geotiff, it seems that DEFLATE is the only one actually compressing.</div><div><br></div><div>I'm running gdal 1.11.0 on Ubuntu 12.04.3 64 bit compiled with ./configure --with-libz   --with-png  --with-libtiff=internal    --with-geotiff=internal   --with-jpeg=internal   --with-openjpeg --with-pg=/usr/local/pgsql/bin/pg_config --with-ogr --with-xerces --with-geos --with-hdf4 --with-hdf5 --with-poppler=/usr/local/lib --with-podofo --with-spatialite --with-netcdf</div><div><br></div><div>Is this expected behavior?  </div><div><br></div><div>Doug</div>-- <br><div>Doug Newcomb</div><div>USFWS</div><div>Raleigh, NC</div><div>919-856-4520 ext. 14 <a href="mailto:doug_newcomb@fws.gov" target="_blank">doug_newcomb@fws.gov</a></div><div>---------------------------------------------------------------------------------------------------------</div><div>The opinions I express are my own and are not representative of the official policy of the U.S.Fish and Wildlife Service or Dept. of the Interior.   Life is too short for undocumented, proprietary data formats.</div>
</div></div>