[GRASS5] zlib and raster rows

Glynn Clements glynn.clements at virgin.net
Wed Apr 28 11:57:46 EDT 2004


Andrea Antonello wrote:

> I'm trying to read rasters rows through java, but it doesn't always work.
> The rows are compressed one by one through zlib (deflate) and put in the file 
> (the header knows where they start).
> 
> The reading works for me if the data is something like 
> 10.0 20.0 30.0
> but it can't recognise the compression method when I have something like:
> 10.123 20.321 30.0
> 
> In the code I only found the Z_DEFAULT_COMPRESSION used, so I really can't 
> understand what goes on. It should compress always the same way.
> 
> Any hint?

Are you getting an error from the zlib decompressor, or is the
uncompressed data just not what you were expecting?

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-dev mailing list