[GRASS5] rasters?

Andrea Antonello andrea.antonello at gmail.com
Mon Mar 13 01:19:43 EST 2006


> What are you asking, exactly?

Alright, thanks Glynn.

About two years ago I wrote the raster reading of GRASS in java for JGrass. 
For the last to years everything worked flawless. 
In the last months something stopped to work, i.e. when the java library tries 
to read a raster map, it fails at the point of uncompressing the raster row.
Since it worked properly in the past years, I expect that something was 
changed in the GRASS libs, so I was asking if anyone knows what that 
something could be, in order to be able to understand and fix is.

Regards,
Andrea





>
> GRASS floating-point rasters are encoded using XDR, then (optionally)
> compressed with zlib.
>
> For data which is compressed (according to the "compressed" field in
> the cellhd file), each row begins with a flag byte which indicates
> whether the data for that row is actually compressed; a value of 48
> (ASCII code for '0') indicates uncompressed data, 49 (ASCII code for
> '1') indicates compressed data.
>
> For uncompressed data, there is no flag byte.

-- 
____________________________________________________________________________
HydroloGIS - Environmental Safety Modelling
www.hydrologis.com

Andrea Antonello
Environmental Engineer
mobile:  +393288497722

"Let it be as much a great honour to take as to give learning,
if you want to be called wise."
Skuggsja' - The King's mirror - 1240 Reykjavik
____________________________________________________________________________





More information about the grass-dev mailing list