Dear GRASS community
I recently jumped into a problem while using the module r.colors to assign the color to the raster file.
I have a landuse map (in vector format) with ID field (e.g 1, 2, 3 etc). Each kind of landuse has a color which is defined by three other fields: red, green, blue. After rasterizing the vector file using the ID field. I’m trying to assign color to the landuse raster by using the module r.colors. I prepare a rule file in the following format:
1 255:50:63
2 255:87:96
…
end
then I saved this file with the name rule.file. After that, I ran the r.colors module using this rule file and the following error appeared:
“ERROR: “color”, “rules”, and “raster” options are mutually exclusive”
Here is the whole command line
“r.colors map=landuse color=rules rules=/home/hongluan/rules.file”
I’m using GRASS 6.4.1
Hope you can help me with this one
Thanks in advance
Hi,
2011/7/21 trung dung <honglove999@yahoo.com>:
r.colors module using this rule file and the following error appeared:
"ERROR: "color", "rules", and "raster" options are mutually exclusive"
Here is the whole command line
"r.colors map=landuse color=rules rules=/home/hongluan/rules.file"
I'm using GRASS 6.4.1
in GRASS 6.4.2 this command works, try to remove `color=rules`.
Martin
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
Hi Martin,
On 2011/07/21 20:07, Martin Landa wrote:
2011/7/21 trung dung<honglove999@yahoo.com>:
r.colors module using this rule file and the following error appeared:
"ERROR: "color", "rules", and "raster" options are mutually exclusive"
Here is the whole command line
"r.colors map=landuse color=rules rules=/home/hongluan/rules.file"
I'm using GRASS 6.4.1
in GRASS 6.4.2 this command works, try to remove `color=rules`.
Is GRASS-6.4.2 expected to be released soon?
or are you referring to GRASS-6.4.SVN?
Best
Venka