[GRASS-dev] Re: sizeof(long) + nviz on reclass map [was: RC5 on Mac OS X]

Glynn Clements glynn at gclements.plus.com
Wed Sep 2 17:34:49 EDT 2009


Hamish wrote:

> > can you please test one additional nviz issue?
> > 
> > with nc_spm_08 data set, what happens when you run
> > 
> > g.region rast=elevation
> > nviz elevation col=landclass96
> > 
> > this used to run, but now I get:
> > 
> > Warning: loading failed
> > ERROR:
> > 
> > landclass96 is a reclass raster, making it regular raster, fixes the
> > problem.
> > It used to run, so I am not sure whether there is a problem with my
> > data set or with my version of GRASS (I am using William's
> > grass64 binary).
> 
> 
> I can see the same thing on linux 64bit.
> 
> 
> The warning is because Gs_loadmap_as_char() in lib/ogsf/Gs3.c returns -2,
> which apparently means:
>    \return -2 if read ok, but 1 or more values
>    were too large (small) to fit into an unsigned char.
>    (in which case the max (min) char is used)
> .... 
>     return (overflow ? -2 : 1);
> }
> 
> 
> ... which points to a 32bit/64bit sizeof() snafu ..

Huh?

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list