[GRASS-dev] [GRASS GIS] #2304: Problems with add category to all features workflow

GRASS GIS trac at osgeo.org
Thu May 22 01:32:18 PDT 2014


#2304: Problems with add category to all features workflow
--------------------------------+-------------------------------------------
 Reporter:  wenzeslaus          |       Owner:  grass-dev@…              
     Type:  defect              |      Status:  new                      
 Priority:  normal              |   Milestone:  7.1.0                    
Component:  Default             |     Version:  unspecified              
 Keywords:  v.edit, v.category  |    Platform:  Unspecified              
      Cpu:  Unspecified         |  
--------------------------------+-------------------------------------------

Comment(by mlennert):

 This sound more like a usage (and partly documentation) problem to me.

 The v.edit man page clearly says:

 catadd: Set new categories to selected vector features for defined layer

 i.e. you have to select the features you want to add cats to using any of
 the selection options v.edit offers (id, bbox, coords, polygon, ...). If
 you don't select anything, no feature will be touched. For example, you
 can just use v.info -g to get the bbox. Obviously, your -r trick does
 work, but v.edit works as expected.

 v.category option=add only adds category values to features which do not
 have category values in the chosen layer. The man page does not seem to
 mention this, so this should probably be added using something like this:


 {{{
 Index: main.c
 ===================================================================
 --- main.c      (révision 60228)
 +++ main.c      (copie de travail)
 @@ -112,7 +112,7 @@
                "report;%s;"
                "print;%s;"
                "layers;%s",
 -              _("add a new category"),
 +              _("add a new category to features without category"),
                _("delete category (cat=-1 to delete all categories of
 given layer)"),
                _("change layer number (e.g. layer=3,1 changes layer 3 to
 layer 1)"),
                _("add the value specified by cat option to the current
 category value"),
 }}}

 Except for this small documentation issue, I would suggest closing this
 bug as invalid.

 Moritz

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



More information about the grass-dev mailing list