[GRASS-dev] [GRASS GIS] #2092: v.category option=del doesn't delete any categories
GRASS GIS
trac at osgeo.org
Sat Oct 5 06:18:56 PDT 2013
#2092: v.category option=del doesn't delete any categories
-------------------------+--------------------------------------------------
Reporter: marisn | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Vector | Version: svn-trunk
Keywords: v.category | Platform: Linux
Cpu: Unspecified |
-------------------------+--------------------------------------------------
Comment(by mmetz):
Replying to [ticket:2092 marisn]:
> According to v.category documentation, option=del should result in
deleting all categories, still it does nothing - all categories are
present after module run.
option=del deletes all categories with the value set with the cat option.
The cat option is by default set to 1, thus only categories with value 1
will be deleted, as happened in the example:
>
{{{
v.category input=augstumi_merged output=augstumi_merged2 option=del
layer=1
v.category izpildīts. 1 features modified.
}}}
>
In order to delete all categories of the given layer, cat must be set to
-1. This was nmot clear in the documentation, fixed in r57940.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2092#comment:1>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list