[GRASS-dev] r.what.color questions

Hamish hamish_nospam at yahoo.com
Wed May 9 07:53:05 EDT 2007


Hi,

WRT the r.what.color module.

#### it should use map= and not input=

#### can it protect against malformed format strings like:
 format="%s%s%s"
 format="%d:%d:%d|%s"
Segmentation fault   (and/or memory exposure)
?

#### any call for a -s flag to scale color values from 0.0-1.0?
[PostScript, Matlab] (-1 and -o are both bad chars for flags)


#### can it format output like:
cat|<fmt>
  instead of
cat: <fmt>

? (too many ":")

1000: 0:255:0
 vs
1000|0:255:0


#### any comment WRT wish #382 ?
  http://wald.intevation.org/tracker/index.php?func=detail&aid=382

it would be nice (eg for vector maps) to have something like r.colors
color=,rules= where you could pass r.what.color a FP value= and some
color rules and have it output value|RRR:GGG:BBB for insertion into
a vector's table with Markus's proposed v.colors script. (for use with
modules that use GRASS_RGB column to get color)

For massive point maps without a table (X,Y,Z lidar data), it is
preferable to incorporate that into d.vect (or whatver) so color mapping
could be calculated at run time, not having to store each cat's color in
a DB.


thanks,
Hamish




More information about the grass-dev mailing list