[GRASS-SVN] r56211 - in grass/trunk: include lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun May 12 04:07:51 PDT 2013
Author: martinl
Date: 2013-05-12 04:07:51 -0700 (Sun, 12 May 2013)
New Revision: 56211
Modified:
grass/trunk/include/gis.h
grass/trunk/lib/gis/parser_standard_options.c
Log:
libgis: add standardized option for interpolation methods
G_OPT_R_INTERP_TYPE
Modified: grass/trunk/include/gis.h
===================================================================
--- grass/trunk/include/gis.h 2013-05-12 02:52:39 UTC (rev 56210)
+++ grass/trunk/include/gis.h 2013-05-12 11:07:51 UTC (rev 56211)
@@ -198,6 +198,7 @@
G_OPT_R_COVER, /* old input cover raster map */
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_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 2013-05-12 02:52:39 UTC (rev 56210)
+++ grass/trunk/lib/gis/parser_standard_options.c 2013-05-12 11:07:51 UTC (rev 56211)
@@ -54,7 +54,8 @@
- G_OPT_R_COVER
- G_OPT_R_ELEV
- G_OPT_R_ELEVS
-
+ - G_OPT_R_INTERP_TYPE
+
- raster3d:
- G_OPT_R3_INPUT
- G_OPT_R3_INPUTS
@@ -302,6 +303,13 @@
Opt->gisprompt = "old,cell,raster";
Opt->description = _("Name of input elevation raster map(s)");
break;
+ case G_OPT_R_INTERP_TYPE:
+ Opt->key = "method";
+ Opt->type = TYPE_STRING;
+ Opt->required = NO;
+ Opt->description = _("Interpolation method");
+ Opt->options = "nearest,bilinear,bicubic";
+ break;
/*g3d maps */
case G_OPT_R3_INPUT:
More information about the grass-commit
mailing list