<div dir="ltr">Also, it's worth remembering that LZ4 is not intended for file size. It's there because it decompresses at least an order of magnitude faster than LZW.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 26, 2017 at 10:23 AM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div style="font-family:'Sans Serif';font-size:9pt;font-weight:400;font-style:normal"><span class="">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">On jeudi 26 octobre 2017 18:57:10 CEST Markus Neteler wrote:</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> On Thu, Oct 26, 2017 at 9:25 AM, Markus Metz</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> <<a href="mailto:markus.metz.giswork@gmail.com" target="_blank">markus.metz.giswork@gmail.com</a><wbr>> wrote:</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> > On Wed, Oct 25, 2017 at 10:40 PM, Markus Neteler <<a href="mailto:neteler@osgeo.org" target="_blank">neteler@osgeo.org</a>> wrote:</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> >> Hi devs,</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> >> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> >> while playing with the SRTM 30m world I see that there is a difference</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> >> of 66GB in size between LZ4 (larger) and DEFLATE (smaller). While this</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> >> is not a surprise I was wondering if LZW compression could be brought</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> >> back. AFAIK the license issue is gone for a while and indeed GRASS got</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> >> a special permit back in 1988 according to the old source code.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> >> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> >> Would that make sense?</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> > </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> > You could test with compress (LZW) and gzip (DEFLATE based on LZ77) if</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> > that</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> > would make sense.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> > </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> > Implementation would be a bit of an effort: either adapt from the source</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> > code of compress or from GDAL's LZW compression for Tiff.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> I thought to remember that the LZW compression was in libgis some</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> decades ago but did not find any trace so far.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> At that point I happily abandon this idea - no need to waste energy here :-)</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
</span><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Another option would be to consider the zstd / zstandard compression method</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">( <a href="https://github.com/facebook/zstd" target="_blank">https://github.com/facebook/<wbr>zstd</a> ), that has roughly the compression ratio of DEFLATE / LZ77 with a compression and decompression speed 3 or 4 times faster. This is in my todo list of things to experiment as a libtiff compression method.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Zstd has been added recently as a compression method in the Linux kernel:</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><a href="https://www.phoronix.com/scan.php?page=news_item&px=ZSTD-Linux-Kernel-Image" target="_blank">https://www.phoronix.com/scan.<wbr>php?page=news_item&px=ZSTD-<wbr>Linux-Kernel-Image</a></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Even</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">-- </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Spatialys - Geospatial professional services</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a></p></div><br>______________________________<wbr>_________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/grass-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><table style="color:rgb(136,136,136);border:none;border-collapse:collapse"><tbody><tr style="height:101px"><td style="border:0px solid rgb(0,0,0);vertical-align:middle;padding:7px"><div style="text-align:center"><br></div><font face="verdana, sans-serif"><span style="font-size:12px;color:rgb(102,102,102);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"></span></font></td><td style="border:0px solid rgb(0,0,0);vertical-align:middle;padding:7px"><p dir="ltr" style="line-height:1;margin-top:0pt;margin-bottom:0pt"><b style="color:rgb(102,102,102);font-family:arial,helvetica,sans-serif">Seth Price</b></p><p dir="ltr" style="line-height:1;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(102,102,102);font-family:arial,helvetica,sans-serif">Director of Putting the Pixels Where They Belong</span></p>Satellitenfernerkundungsspezialist<p dir="ltr" style="line-height:1;margin-top:0pt;margin-bottom:0pt"><b style="color:rgb(102,102,102);font-family:arial,helvetica,sans-serif">Planet Labs</b><br></p><p dir="ltr" style="line-height:1;margin-top:0pt;margin-bottom:0pt"><font size="2" style="font-family:arial,helvetica,sans-serif"><font color="#666666">Email: <a href="mailto:seth@planet.com" target="_blank">seth@<font color="#1155cc">planet.com</font></a></font><font color="#0000ff"> </font></font><font color="#0000ff" style="font-family:arial,helvetica,sans-serif"> </font><br></p><div><font size="2" face="arial, helvetica, sans-serif"><font color="#666666">Phone: (608) 335-8068</font></font></div></td></tr></tbody></table></div></div></div></div></div></div>
</div>