[GRASS5] r.texture segfault

Glynn Clements glynn at gclements.plus.com
Thu Jul 7 11:39:38 EDT 2005


Hamish wrote:

> >    if (grays[row][col] < 0 || grays[row][col] > PGM_MAXMAXVAL)
> >       G_fatal_error ("Too many categories (found: %i, max: %i). Try to
> >       rescale or reclassify the map", grays[row][col], PGM_MAXMAXVAL);
> 
> 
> The check is good, but the -2147483648 problem is still that the module
> doesn't understand NULLs?

Correct.

> This stops the Segfault but the module still
> doesn't work right. Or does the texture algorithm forbid NULLs?

Correct.

If your data has nulls, you have to get rid of them, e.g. using
r.fillnulls. Ditto for out-of-range values (<0 or >255).

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




More information about the grass-dev mailing list