[GRASS5] r.lzw2z updated...

Markus Neteler neteler at geog.uni-hannover.de
Mon Jan 22 13:01:03 EST 2001


Hi Eric,

On Mon, Jan 22, 2001 at 09:36:25AM +0000, Markus Neteler wrote:
> On Sun, Jan 21, 2001 at 07:25:11PM -0800, Eric G . Miller wrote:
> > I've update the r.lzw2z conversion module.
> > 
> > 1. Hopefully fix a NULL file problem Markus reported, now never uses the
> >    G_open_cell* functions (which I think was where the problem was??).
> > 
> > 2. Build in intelligence about FP rasters that have already been
> > converted.  Both script and libraries now set lzw_compression_bits in
> > cell_misc/<name>/f_format to '-1'.  This value makes no sense for LZW
> > and is unused by libz.
> 
> Eric,
> 
> just tested the updated module:
> 
>  - no segfault any more, but
>  - I get this warning:
>    Processing aspect at helge ... Copying ... WARNING:
>    cell_misc/aspect/f_format file may be corrupted!
> 
>    Processing slope at helge ... Copying ... WARNING: cell_misc/slope/f_format
>    file may be corrupted!
> 
> There seems to be one bug left.

I have tried the converted maps: They are OK! So maybe just
the return value is reverted (it simply shouldn't print above warning).

Can't see any problems except the confusing warning with your updated
r.lzw2z

Re-running it is o.k. as well:
Skipping raster aspect at demomapset -- Not LZW compressed
Skipping raster slope at demomapset -- Not LZW compressed

So, if you revert the if-clause (or whatever) for the WARNING,
I think r.lzw2z is working well.

Continuing to convert 1000s of maps... :-)

 Markus

---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list