<div dir="ltr"><div> Hi Moritz,</div><br>On Wed, Dec 4, 2019 at 10:28 AM Moritz Lennert <<a href="mailto:mlennert@club.worldonline.be">mlennert@club.worldonline.be</a>> wrote:<br>><br>> Hi Markus,<br>><br>> In recent days, I've been confronted several times with the issue of<br>> people trying to share data among themselves, but using different<br>> versions of GRASS, and so raster data compressed in a more recent<br>> version of GRASS was not usable in an older version of GRASS.<br><div></div><div>></div>> Now, I agree that generally the solution is to tell people to use the<br>> latest and greatest, but this is not always possible / it is not<br>> necessarily highest on the list of priorities of people to see how they<br>> can install the latest version of GRASS within their particular environment.<br>><br>> Obviously, those with the latest version of GRASS can simple recompress<br>> using ZLIB. However, compression method is defined as an environment<br>> variable. This is somewhat daunting to many MS Windows users out there.<br>> Is there any specific reason that lead to the choice of not using a<br>> parameter to allow the choice of compression method (possibly to<br>> override a default that is still defined by an environment variable) ?<br><div><br></div><div>Such a parameter would need to be added to every module creating raster output.</div><div><br></div><div>The reason for an environment variable is historical: previously, CELL maps were by default compressed with RLE, this could be changed with the env var GRASS_INT_ZLIB. This mechanism of using an env var for raster compression has been extended.</div><div><br></div><div>Other solutions than an env var would be to use g.gisenv/$GISRC to set the default compression method per user or a mapset-specific compression method (to be set with a modified r.compress?) stored in the mapset's VAR file.<br></div><div><br></div><div>Regarding MS Windows users + raster compression: I think it is reasonable to assume at least GRASS 7.6 which has support all compression methods available in GRASS.</div><div><br></div><div>Markus M<br></div><br></div>