[GRASS-dev] r.cats -> r.category + enhancements

Glynn Clements glynn at gclements.plus.com
Sun Oct 7 11:10:29 EDT 2007


Hamish wrote:

> if there are no objections I will rename r.cats to be r.category (to match
> v.category), leaving a r.cats symlink for backwards compatibility for the
> duration of GRASS 6.x.
> 
> In addition I mean to move/copy the copy cats from raster= option from
> r.support to r.category and add a rules= option to import category labels from
> a file.

FWIW, I've written an r.support.cats module, but haven't tested it or
committed it yet. I've attached it in case you want to use it for a
base.

> I am unsure if it is better for the import format to match the current r.cats
> output format, or to try and follow what r.reclass has. For FP maps we will
> have to accept "a thru b<FS>Label" as well as "a<FS>Label" input rules. (<FS>
> comes from the fs= option)

I used essentially the existing format, without the header. Each line
is either value:label or min:max:label (for ranges).

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: r.support.cats.tar.gz
Type: application/octet-stream
Size: 1480 bytes
Desc: r.support.cats
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20071007/b31971f9/r.support.cats.tar.obj


More information about the grass-dev mailing list