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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed May 21 01:24:32 PDT 2014


Author: mmetz
Date: 2014-05-21 01:24:32 -0700 (Wed, 21 May 2014)
New Revision: 60387

Modified:
   grass/trunk/include/gis.h
   grass/trunk/lib/gis/parser_standard_options.c
Log:
libgis: add G_OPT_R_OUTPUTS

Modified: grass/trunk/include/gis.h
===================================================================
--- grass/trunk/include/gis.h	2014-05-21 06:39:18 UTC (rev 60386)
+++ grass/trunk/include/gis.h	2014-05-21 08:24:32 UTC (rev 60387)
@@ -211,6 +211,7 @@
     G_OPT_R_INPUT,		/*!< old input raster map */
     G_OPT_R_INPUTS,		/*!< old input raster maps */
     G_OPT_R_OUTPUT,		/*!< new output raster map */
+    G_OPT_R_OUTPUTS,		/*!< new output raster maps */
     G_OPT_R_MAP,		/*!< old input raster map */
     G_OPT_R_MAPS,		/*!< old input rasters map */
     G_OPT_R_BASE,		/*!< old input base raster map */

Modified: grass/trunk/lib/gis/parser_standard_options.c
===================================================================
--- grass/trunk/lib/gis/parser_standard_options.c	2014-05-21 06:39:18 UTC (rev 60386)
+++ grass/trunk/lib/gis/parser_standard_options.c	2014-05-21 08:24:32 UTC (rev 60387)
@@ -260,6 +260,15 @@
 	Opt->gisprompt = "new,cell,raster";
 	Opt->description = _("Name for output raster map");
 	break;
+    case G_OPT_R_OUTPUTS:
+	Opt->key = "output";
+	Opt->type = TYPE_STRING;
+	Opt->key_desc = "name";
+	Opt->required = YES;
+	Opt->multiple = YES;
+	Opt->gisprompt = "new,cell,raster";
+	Opt->description = _("Name for output raster map(s)");
+	break;
     case G_OPT_R_MAP:
 	Opt->key = "map";
 	Opt->type = TYPE_STRING;



More information about the grass-commit mailing list