[GRASS-SVN] r70058 - grass/branches/releasebranch_7_2/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 11 11:36:11 PST 2016


Author: neteler
Date: 2016-12-11 11:36:11 -0800 (Sun, 11 Dec 2016)
New Revision: 70058

Modified:
   grass/branches/releasebranch_7_2/lib/gis/gisinit.c
Log:
libgis: transfer zlib compression levels comments from r69388 (completes r69387)

Modified: grass/branches/releasebranch_7_2/lib/gis/gisinit.c
===================================================================
--- grass/branches/releasebranch_7_2/lib/gis/gisinit.c	2016-12-11 18:59:46 UTC (rev 70057)
+++ grass/branches/releasebranch_7_2/lib/gis/gisinit.c	2016-12-11 19:36:11 UTC (rev 70058)
@@ -119,6 +119,10 @@
     G__.little_endian = G_is_little_endian();
 
     zlib = getenv("GRASS_ZLIB_LEVEL");
+    /* Valid zlib compression levels -1 - 9 */
+    /* zlib default: Z_DEFAULT_COMPRESSION = -1, equivalent to 6 
+     * level 0 means no compression
+     * as used here, 1 gives the best compromise between speed and compression */
     G__.compression_level = (zlib && *zlib && isdigit(*zlib)) ? atoi(zlib) : 1;
     if (G__.compression_level < -1 || G__.compression_level > 9)
 	G__.compression_level = 1;



More information about the grass-commit mailing list