[GRASS-SVN] r34750 - grass/branches/develbranch_6/vector/v.category

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Dec 6 11:25:20 EST 2008


Author: martinl
Date: 2008-12-06 11:25:20 -0500 (Sat, 06 Dec 2008)
New Revision: 34750

Modified:
   grass/branches/develbranch_6/vector/v.category/main.c
Log:
v.category: back to original 'del' option -> delete all categories of given layer

Modified: grass/branches/develbranch_6/vector/v.category/main.c
===================================================================
--- grass/branches/develbranch_6/vector/v.category/main.c	2008-12-06 11:42:23 UTC (rev 34749)
+++ grass/branches/develbranch_6/vector/v.category/main.c	2008-12-06 16:25:20 UTC (rev 34750)
@@ -82,7 +82,7 @@
     option_opt->answer = "add";
     option_opt->description = _("Action to be done");
     option_opt->descriptions = _("add;add a new category;"
-				 "del;delete category (-1 to delete all categories of given layer);"
+				 "del;delete all categories of given layer;"
 				 "chlayer;change layer number (e.g. layer=3,1 changes layer 3 to layer 1);"
 				 "sum;add the value specified by cat option to the current category value;"
 				 "report;print report (statistics), in shell style: layer type count min max;"
@@ -281,7 +281,7 @@
 	    if (type & otype && (!Clist ||
 				 (Clist &&
 				  Vect_cat_in_cat_list(id, Clist) == TRUE))) {
-		ret = Vect_field_cat_del(Cats, fields[0], cat);
+		ret = Vect_field_cat_del(Cats, fields[0], -1);
 		if (ret == 1) {
 		    nmodified++;
 		}
@@ -528,7 +528,7 @@
 	Vect_build(&Out);
 	Vect_close(&Out);
 	
-	G_done_msg(_("%d features modified"), nmodified);
+	G_done_msg(_("%d features modified."), nmodified);
     }
     Vect_close(&In);
 



More information about the grass-commit mailing list