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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed May 21 09:44:24 EDT 2008


Author: neteler
Date: 2008-05-21 09:44:24 -0400 (Wed, 21 May 2008)
New Revision: 31466

Modified:
   grass/trunk/include/gis.h
   grass/trunk/lib/gis/parser.c
Log:
added G_OPT_I_SUBGROUP

Modified: grass/trunk/include/gis.h
===================================================================
--- grass/trunk/include/gis.h	2008-05-21 13:21:08 UTC (rev 31465)
+++ grass/trunk/include/gis.h	2008-05-21 13:44:24 UTC (rev 31466)
@@ -160,6 +160,7 @@
     G_OPT_COLUMNS,  /* one or more attr columns */
 
     G_OPT_I_GROUP,  /* old input imagery group */
+    G_OPT_I_SUBGROUP,  /* old input imagery subgroup */
     G_OPT_R_INPUT,  /* old input raster map */
     G_OPT_R_INPUTS, /* old input raster maps */
     G_OPT_R_OUTPUT, /* new output raster map */

Modified: grass/trunk/lib/gis/parser.c
===================================================================
--- grass/trunk/lib/gis/parser.c	2008-05-21 13:21:08 UTC (rev 31465)
+++ grass/trunk/lib/gis/parser.c	2008-05-21 13:44:24 UTC (rev 31466)
@@ -315,7 +315,7 @@
  *
  * - general: G_OPT_WHERE, G_OPT_COLUMN, G_OPT_COLUMNS, G_OPT_TABLE, G_OPT_DRIVER, G_OPT_DATABASE
  *
- * - imagery: G_OPT_I_GROUP
+ * - imagery: G_OPT_I_GROUP, G_OPT_I_SUBGROUP
  *
  * - raster: G_OPT_R_INPUT, G_OPT_R_INPUTS, G_OPT_R_OUTPUT, G_OPT_R_MAP, G_OPT_R_MAPS, G_OPT_R_BASE, G_OPT_R_COVER, G_OPT_R_ELEV, G_OPT_R_ELEVS
  *
@@ -395,6 +395,14 @@
 	    Opt->gisprompt    = "old,group,group";
 	    Opt->description  = _("Name of input imagery group");
             break;
+        case G_OPT_I_SUBGROUP:
+	    Opt->key          = "subgroup";
+	    Opt->type         = TYPE_STRING;
+	    Opt->key_desc     = "name";
+	    Opt->required     = YES;
+	    Opt->gisprompt    = "old,subgroup,subgroup";
+	    Opt->description  = _("Name of input imagery subgroup");
+            break;
 
 	/* raster maps */    
 	case G_OPT_R_INPUT:



More information about the grass-commit mailing list