[GRASS5] 5.7: make GRASS_INT_ZLIB default?

Markus Neteler neteler at itc.it
Mon Nov 22 11:04:04 EST 2004


On Fri, Nov 19, 2004 at 06:02:25PM +0000, Glynn Clements wrote:
> 
> Markus Neteler wrote:
> 
> > proposal for 5.7-CVS: make zlib compression instead of RLE the
> > default setting, probably modifying:
> > 
> > grass57/lib/gis > grep GRASS_INT_ZLIB *
> > opencell.c:     COMPRESSION_TYPE = getenv("GRASS_INT_ZLIB") ? 2 : 1;
> > 
> > Are there objections?
> 
> The most obvious problem is that raster maps will be unreadable on
> versions of GRASS which pre-date the addition of zlib support.

Isn't it possible then to 
 r.compress -u
in the ZLIB-GRASS version and then read it with the older GRASS?

The change is similar to the LZW change some years ago (which went smoothly).
 
> Also, I don't know whether that feature has received any significant
> testing.

Time to do that :-)

> > I am, however, not sure, how to apply such change (without
> > breaking things).
> 
> 	COMPRESSION_TYPE = getenv("GRASS_INT_NOZLIB") ? 1 : 2;

Will change here for me at least.

Markus




More information about the grass-dev mailing list