[GRASS-dev] r.cats -> r.category + enhancements
hamish_nospam at yahoo.com
Wed Oct 10 04:23:04 EDT 2007
r.cats updates committed to cvs. test away.
I am not sure that all which is mentioned in the lib/gis/cats.c comments
really work. (copied into description.html)
I know these don't work:
- category ranges; cat1:cat2:Label appears as just cat2:Label in
- val1:val2:Labels for FP maps don't appear in d.legend(?)
- ps.map doesn't respect dynamic label names (see RT bug report)
There are probably more bugs about but I wanted to get it checked in for
others to help test. The library code is somewhat "dusty". Reading from
stdin is brand new & totally untested.
r.cats is preserved as a symlink.
Anyone have ideas for module keywords? "support"?
G63> r.category --help
Manages category values and labels associated with user-specified raster
r.category map=name [cats=range[,range,...]] [vals=value[,value,...]]
[fs=character|space|tab] [raster=name] [rules=name] [format=string]
[coefficients=mult1,offset1,mult2,offset2] [--verbose] [--quiet]
--v Verbose module output
--q Quiet module output
map Name of input raster map
cats Category values
vals Comma separated value list
fs Output field separator
raster Raster map from which to copy category table
rules File containing category label rules (or "-" to read
format Default label or format string for dynamic labeling
Used when no explicit label exists for the category
coefficients Dynamic label coefficients
Two pairs of category multiplier and offsets, for $1
More information about the grass-dev