r.colors: Bug and Fix
Michael Schulz
schulzm at perm.geologie.uni-freiburg.de
Tue Oct 5 11:01:13 EDT 1999
Dear List !
When trying to change the colortable of a raster map via r.colors and
rules-File or interactively, the program did not recognize the "end"
command of the rules-File.
This bug is reported for r.colors in the list
of reported bugs for GRASS 5
(http://www.geog.uni-hannover.de/grass/grass5/known_bugs_aug99.txt).
I don´t know if this is a real fix for it, but it is a workaround:
Replace in $GISBASE/src/raster/r.colors/cmd/rules.c:
line 163: if (strcmp(buf, "end") == 0) return 0;
with: if (strncmp(buf, "end",3) == 0) return 0;
BTW: The same is applicable for line 165, the help command !
Cheers,
Michael
==============================================================
Michael Schulz
Christoph-Mang-Str.5 Geologisches Institut
79100 Freiburg Universitaet Freiburg
Albertstr. 23b
79104 Freiburg
More information about the grass-user
mailing list