[GRASS-SVN] r34669 - in grass/branches/develbranch_6: lib/gis vector/v.category

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Dec 2 11:44:49 EST 2008


Author: martinl
Date: 2008-12-02 11:44:48 -0500 (Tue, 02 Dec 2008)
New Revision: 34669

Modified:
   grass/branches/develbranch_6/lib/gis/parser.c
   grass/branches/develbranch_6/vector/v.category/main.c
Log:
v.category: more guisections
	    sipmlify G_OPT_TYPE description


Modified: grass/branches/develbranch_6/lib/gis/parser.c
===================================================================
--- grass/branches/develbranch_6/lib/gis/parser.c	2008-12-02 15:59:25 UTC (rev 34668)
+++ grass/branches/develbranch_6/lib/gis/parser.c	2008-12-02 16:44:48 UTC (rev 34669)
@@ -563,8 +563,7 @@
 	Opt->multiple = YES;
 	Opt->answer = "point,line,boundary,centroid,area";
 	Opt->options = "point,line,boundary,centroid,area";
-	Opt->label = _("Type");
-	Opt->description = _("Feature type(s)");
+	Opt->description = _("Feature type");
 	break;
     case G_OPT_V_FIELD:
 	Opt->key = "layer";

Modified: grass/branches/develbranch_6/vector/v.category/main.c
===================================================================
--- grass/branches/develbranch_6/vector/v.category/main.c	2008-12-02 15:59:25 UTC (rev 34668)
+++ grass/branches/develbranch_6/vector/v.category/main.c	2008-12-02 16:44:48 UTC (rev 34669)
@@ -69,9 +69,9 @@
 	_("Attach, delete or report vector categories to map geometry.");
 
     in_opt = G_define_standard_option(G_OPT_V_INPUT);
+
     out_opt = G_define_standard_option(G_OPT_V_OUTPUT);
     out_opt->required = NO;
-    type_opt = G_define_standard_option(G_OPT_V_TYPE);
 
     option_opt = G_define_option();
     option_opt->key = "option";
@@ -88,15 +88,24 @@
 				 "report;print report (statistics), in shell style: layer type count min max;"
 				 "print;print category values, more cats in the same layer are separated by '/'");
 
-    cat_opt = G_define_standard_option(G_OPT_V_CAT);
-    cat_opt->answer = "1";
-    cat_opt->guisection = _("Selection");
+    type_opt = G_define_standard_option(G_OPT_V_TYPE);
+    type_opt->guisection = _("Selection");
 
     field_opt = G_define_standard_option(G_OPT_V_FIELD);
     field_opt->answer = "1";
     field_opt->multiple = YES;
     field_opt->guisection = _("Selection");
 
+    id_opt = G_define_standard_option(G_OPT_V_CAT);
+    id_opt->multiple = YES;
+    id_opt->label = _("Feature id(s)");
+    id_opt->description = _("By default all ids are processed");
+    id_opt->key = "id";
+    id_opt->guisection = _("Selection");
+
+    cat_opt = G_define_standard_option(G_OPT_V_CAT);
+    cat_opt->answer = "1";
+
     step_opt = G_define_option();
     step_opt->key = "step";
     step_opt->type = TYPE_INTEGER;
@@ -105,12 +114,6 @@
     step_opt->answer = "1";
     step_opt->description = _("Category increment");
 
-    id_opt = G_define_standard_option(G_OPT_V_CAT);
-    id_opt->multiple = YES;
-    id_opt->label = _("Feature id(s)");
-    id_opt->description = _("By default all ids are processed");
-    id_opt->key = "id";
-
     shell = G_define_flag();
     shell->key = 'g';
     shell->label = _("Shell script style, currently only for report");



More information about the grass-commit mailing list