Преглед на файлове

libgis: add G_OPT_R_OUTPUTS

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@60387 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz преди 11 години
родител
ревизия
9c0e791c46
променени са 2 файла, в които са добавени 10 реда и са изтрити 0 реда
  1. 1 0
      include/gis.h
  2. 9 0
      lib/gis/parser_standard_options.c

+ 1 - 0
include/gis.h

@@ -211,6 +211,7 @@ static const char *GRASS_copyright __attribute__ ((unused))
     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 */

+ 9 - 0
lib/gis/parser_standard_options.c

@@ -260,6 +260,15 @@ struct Option *G_define_standard_option(int opt)
 	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;