[gdal-dev] LZW Compression on geotiffs
Robert Coup
robert.coup at koordinates.com
Wed Oct 1 22:09:17 PDT 2014
On Thu, Oct 2, 2014 at 12:46 PM, Armin Burger <armin.burger at gmx.net> wrote:
> The only time that I discovered where LZW does not work well was when
> using gdalwarp and directly writing the output as (untiled) LZW TIFF. This
> could create LZW files up to 2-3 times bigger than the uncompressed input
> TIFF. When using gdalwarp and one wants to save disk space one should
> either create tiled LZW TIFF's, or warp to uncompressed TIFF and then use
> gdal_translate with LZW to create the final LZW image, PREDICTOR=2 is
> recommended for both methods.
We've learned to do the latter (warp first, then compress via translate) if
you're writing into the output TIFF from more than one input file. The
compressed tiff will be smaller, and you won't get weird bugs appearing
occasionally.
Rob :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20141002/682ed5f9/attachment.html>
More information about the gdal-dev
mailing list