[GRASS-SVN] r51973 - grass/trunk/general/g.region

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jun 4 11:49:31 PDT 2012


Author: martinl
Date: 2012-06-04 11:49:30 -0700 (Mon, 04 Jun 2012)
New Revision: 51973

Modified:
   grass/trunk/general/g.region/main.c
Log:
g.region: options desc cosmetics
          fix checking for open level (>=2)


Modified: grass/trunk/general/g.region/main.c
===================================================================
--- grass/trunk/general/g.region/main.c	2012-06-04 15:27:51 UTC (rev 51972)
+++ grass/trunk/general/g.region/main.c	2012-06-04 18:49:30 UTC (rev 51973)
@@ -169,7 +169,7 @@
     parm.raster->key = "rast";
     parm.raster->required = NO;
     parm.raster->multiple = YES;
-    parm.raster->description = _("Set region to match this raster map");
+    parm.raster->description = _("Set region to match raster map(s)");
     parm.raster->guisection = _("Existing");
 
     parm.raster3d = G_define_standard_option(G_OPT_R3_MAP);
@@ -177,7 +177,7 @@
     parm.raster3d->required = NO;
     parm.raster3d->multiple = NO;
     parm.raster3d->description =
-	_("Set region to match this 3D raster map (both 2D and 3D "
+	_("Set region to match 3D raster map(s) (both 2D and 3D "
 	  "values)");
     parm.raster3d->guisection = _("Existing");
 
@@ -185,7 +185,8 @@
     parm.vect->key = "vect";
     parm.vect->required = NO;
     parm.vect->multiple = YES;
-    parm.vect->description = _("Set region to match this vector map");
+    parm.vect->label = _("Set region to match vector map(s)");
+    parm.vect->description = NULL;
     parm.vect->guisection = _("Existing");
 
     parm.view = G_define_option();
@@ -277,7 +278,7 @@
     parm.res->multiple = NO;
     parm.res->type = TYPE_STRING;
     parm.res->description =
-	_("Grid resolution 2D (both north-south and east-west)");
+	_("2D grid resolution (north-south and east-west)");
     parm.res->guisection = _("Resolution");
 
     parm.res3 = G_define_option();
@@ -296,7 +297,7 @@
     parm.nsres->required = NO;
     parm.nsres->multiple = NO;
     parm.nsres->type = TYPE_STRING;
-    parm.nsres->description = _("North-south grid resolution 2D");
+    parm.nsres->description = _("North-south 2D grid resolution");
     parm.nsres->guisection = _("Resolution");
 
     parm.ewres = G_define_option();
@@ -305,7 +306,7 @@
     parm.ewres->required = NO;
     parm.ewres->multiple = NO;
     parm.ewres->type = TYPE_STRING;
-    parm.ewres->description = _("East-west grid resolution 2D");
+    parm.ewres->description = _("East-west 2D grid resolution");
     parm.ewres->guisection = _("Resolution");
 
     parm.tbres = G_define_option();
@@ -314,7 +315,7 @@
     parm.tbres->required = NO;
     parm.tbres->multiple = NO;
     parm.tbres->type = TYPE_STRING;
-    parm.tbres->description = _("Top-bottom grid resolution 3D");
+    parm.tbres->description = _("Top-bottom 3D grid resolution");
     parm.tbres->guisection = _("Resolution");
 
     parm.zoom = G_define_option();
@@ -514,10 +515,10 @@
 	    temp_window = window;
 
 	    Vect_set_open_level(2);
-	    if (2 != Vect_open_old(&Map, vect_name, mapset))
-		G_fatal_error(_("Unable to open vector map <%s@%s>"),
+	    if (2 > Vect_open_old(&Map, vect_name, mapset))
+		G_fatal_error(_("Unable to open vector map <%s> on topological level"),
 			      vect_name, mapset);
-
+            
 	    Vect_get_map_box(&Map, &box);
 	    map_window = window;
 	    map_window.north = box.N;



More information about the grass-commit mailing list