[GRASS-dev] [GRASS GIS] #1732: r.colors feature request (add flag to copy categories without having to run r.category separately)

#1732: r.colors feature request (add flag to copy categories without having to run
r.category separately)
-------------------------+--------------------------------------------------
Reporter: voncasec | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: minor | Milestone: 7.0.0
Component: Raster | Version: unspecified
Keywords: | Platform: All
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
Often times when I use the r.colors function to copy colors from an
existing rater color table, I repeat the process using the r.category
function to copy the associated categories.

It would be nice to have a flag in r.colors that allows the user to copy
the categories at the same time from the selected raster layer instead of
having to run r.colors and r.category separately.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1732&gt;
GRASS GIS <http://grass.osgeo.org>

#1732: r.colors feature request (add flag to copy categories without having to run
r.category separately)
----------------------------------+-----------------------------------------
Reporter: voncasec | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: minor | Milestone: 7.0.0
Component: Raster | Version: svn-trunk
Keywords: r.colors, r.category | Platform: All
      Cpu: All |
----------------------------------+-----------------------------------------
Changes (by hamish):

  * keywords: => r.colors, r.category
  * version: unspecified => svn-trunk
  * cpu: Unspecified => All

Comment:

I suggest this is best dealt with using a wrapper script, rather than
adding cat label support to r.colors and color support to r.cats, etc., ad
infinitum.

regards,
Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1732#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1732: r.colors feature request (add flag to copy categories without having to run
r.category separately)
----------------------------------+-----------------------------------------
Reporter: voncasec | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: minor | Milestone: 7.0.0
Component: Raster | Version: svn-trunk
Keywords: r.colors, r.category | Platform: All
      Cpu: All |
----------------------------------+-----------------------------------------

Comment(by hamish):

maybe adding an option to copy-everything from another raster to
r.support?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1732#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1732: r.colors feature request (add flag to copy categories without having to run
r.category separately)
----------------------------------+-----------------------------------------
Reporter: voncasec | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: minor | Milestone: 7.0.0
Component: Raster | Version: svn-trunk
Keywords: r.colors, r.category | Platform: All
      Cpu: All |
----------------------------------+-----------------------------------------

Comment(by neteler):

There is also r.colors.out in GRASS 7.

You question is a bit unclear (to me), any use case?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1732#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>