[GRASS-SVN] r60894 - in grass/trunk: include lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jun 20 08:08:09 PDT 2014
Author: zarch
Date: 2014-06-20 08:08:09 -0700 (Fri, 20 Jun 2014)
New Revision: 60894
Modified:
grass/trunk/include/gis.h
grass/trunk/lib/gis/parser_standard_options.c
Log:
libgis: add standardize options for input/output raster basename, see ticket #2136
Modified: grass/trunk/include/gis.h
===================================================================
--- grass/trunk/include/gis.h 2014-06-20 13:58:18 UTC (rev 60893)
+++ grass/trunk/include/gis.h 2014-06-20 15:08:09 UTC (rev 60894)
@@ -219,6 +219,8 @@
G_OPT_R_ELEV, /*!< old input elevation raster map */
G_OPT_R_ELEVS, /*!< old input elevation raster maps */
G_OPT_R_INTERP_TYPE, /*!< interpolation type */
+ G_OPT_R_BASENAME_INPUT, /*!< old input basename raster maps */
+ G_OPT_R_BASENAME_OUTPUT, /*!< new output basename raster maps */
G_OPT_R3_INPUT, /*!< old input raster3d map */
G_OPT_R3_INPUTS, /*!< old input raster3d maps */
Modified: grass/trunk/lib/gis/parser_standard_options.c
===================================================================
--- grass/trunk/lib/gis/parser_standard_options.c 2014-06-20 13:58:18 UTC (rev 60893)
+++ grass/trunk/lib/gis/parser_standard_options.c 2014-06-20 15:08:09 UTC (rev 60894)
@@ -61,6 +61,8 @@
- G_OPT_R_ELEV
- G_OPT_R_ELEVS
- G_OPT_R_INTERP_TYPE
+ - G_OPT_R_BASENAME_INPUT
+ - G_OPT_R_BASENAME_OUTPUT
- raster3d:
- G_OPT_R3_INPUT
@@ -331,6 +333,24 @@
_("Bilinear interpolation"),
_("Bicubic interpolation"));
break;
+ case G_OPT_R_BASENAME_INPUT:
+ Opt->key = "basename";
+ Opt->type = TYPE_STRING;
+ Opt->key_desc = "input basename";
+ Opt->required = YES;
+ Opt->multiple = NO;
+ Opt->gisprompt = "old,cell,raster";
+ Opt->description = _("Name of input basename raster map(s)");
+ break;
+ case G_OPT_R_BASENAME_OUTPUT:
+ Opt->key = "basename";
+ Opt->type = TYPE_STRING;
+ Opt->key_desc = "output basename";
+ Opt->required = YES;
+ Opt->multiple = NO;
+ Opt->gisprompt = "new,cell,raster";
+ Opt->description = _("Name of output basename raster map(s)");
+ break;
/*g3d maps */
case G_OPT_R3_INPUT:
More information about the grass-commit
mailing list