[GRASS-dev] Re: [GRASS GIS] #1001: Add option to replace (instead of just add) cats with v.category

GRASS GIS trac at osgeo.org
Sun Mar 14 09:45:13 EDT 2010


#1001: Add option to replace (instead of just add) cats with v.category
--------------------------+-------------------------------------------------
  Reporter:  needelsd     |       Owner:  grass-dev at lists.osgeo.org      
      Type:  enhancement  |      Status:  new                            
  Priority:  normal       |   Milestone:  6.4.0                          
 Component:  Vector       |     Version:  6.4.0 RCs                      
Resolution:               |    Keywords:  v.category add del replace cats
  Platform:  Unspecified  |         Cpu:  Unspecified                    
--------------------------+-------------------------------------------------
Old description:

> Add an option to v.category option=replace that overwrites the cat values
> in a vector instead of only adding a cat to objects that do not already
> have a cat.
>
> Equivalent to
>
> v.category input=input_vector output=tmp option=del
> v.category input=tmp output=output_vector option=add
> g.remove vect=tmp
>
> Personally, I would also appreciate a flag [-r]?? or other mechanism to
> overwrite cats in the original vector (allow output=input).

New description:

 Add an option to v.category option=replace that overwrites the cat values
 in a vector instead of only adding a cat to objects that do not already
 have a cat.

 Equivalent to

 {{{
 v.category input=input_vector output=tmp option=del
 v.category input=tmp output=output_vector option=add
 g.remove vect=tmp
 }}}

 Personally, I would also appreciate a flag [-r]?? or other mechanism to
 overwrite cats in the original vector (allow output=input).

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


More information about the grass-dev mailing list