[GRASS-SVN] r58670 - in grass/trunk: include lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jan 10 11:31:03 PST 2014


Author: martinl
Date: 2014-01-10 11:31:02 -0800 (Fri, 10 Jan 2014)
New Revision: 58670

Modified:
   grass/trunk/include/gis.h
   grass/trunk/lib/gis/parser_standard_options.c
Log:
libgis: define new standardized option G_OPT_M_REGION


Modified: grass/trunk/include/gis.h
===================================================================
--- grass/trunk/include/gis.h	2014-01-10 19:29:36 UTC (rev 58669)
+++ grass/trunk/include/gis.h	2014-01-10 19:31:02 UTC (rev 58670)
@@ -251,6 +251,7 @@
     G_OPT_M_COORDS,             /*!< coordinates */
     G_OPT_M_COLR,               /*!< color rules */
     G_OPT_M_DIR,                /*!< directory input */    
+    G_OPT_M_REGION,             /*!< saved region */
 
     G_OPT_STDS_INPUT,           /*!< old input space time dataset of type strds, str3ds or stvds */
     G_OPT_STDS_INPUTS,          /*!< old input space time datasets */

Modified: grass/trunk/lib/gis/parser_standard_options.c
===================================================================
--- grass/trunk/lib/gis/parser_standard_options.c	2014-01-10 19:29:36 UTC (rev 58669)
+++ grass/trunk/lib/gis/parser_standard_options.c	2014-01-10 19:31:02 UTC (rev 58670)
@@ -93,12 +93,13 @@
    - G_OPT_C_BG
 
   - misc
+   - G_OPT_M_DIR
    - G_OPT_M_UNITS
    - G_OPT_M_DATATYPE
    - G_OPT_M_MAPSET
    - G_OPT_M_COORDS
    - G_OPT_M_COLR
-   - G_OPT_M_DIR
+   - G_OPT_M_REGION
 
   - temporal GIS framework
    - G_OPT_STDS_INPUT
@@ -633,6 +634,15 @@
         Opt->gisprompt = "old,colortable,colortable";
 	break;
 
+    case G_OPT_M_REGION:
+        Opt->key = "region";
+        Opt->type = TYPE_STRING;
+        Opt->key_desc = "name";
+        Opt->required = NO;
+        Opt->gisprompt = "old,windows,region";
+        Opt->description = _("Name of saved region");
+        break;
+
     /* Spatio-temporal modules of the temporal GIS framework */
     case G_OPT_STDS_INPUT:
 	Opt->key = "input";



More information about the grass-commit mailing list