[GRASS-SVN] r56457 - grass/trunk/vector/v.surf.bspline
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue May 28 12:59:33 PDT 2013
Author: mmetz
Date: 2013-05-28 12:59:33 -0700 (Tue, 28 May 2013)
New Revision: 56457
Modified:
grass/trunk/vector/v.surf.bspline/main.c
Log:
v.surf.bspline: fix type_opt
Modified: grass/trunk/vector/v.surf.bspline/main.c
===================================================================
--- grass/trunk/vector/v.surf.bspline/main.c 2013-05-28 14:46:02 UTC (rev 56456)
+++ grass/trunk/vector/v.surf.bspline/main.c 2013-05-28 19:59:33 UTC (rev 56457)
@@ -152,11 +152,17 @@
_("Length of each spline step in the north-south direction");
stepN_opt->guisection = _("Settings");
- type_opt = G_define_standard_option(G_OPT_R_INTERP_TYPE);
+ type_opt = G_define_option();
+ type_opt->key = "method";
type_opt->description = _("Spline interpolation algorithm");
+ type_opt->type = TYPE_STRING;
type_opt->options = "linear,cubic";
type_opt->answer = "linear";
type_opt->guisection = _("Settings");
+ G_asprintf((char **) &(type_opt->descriptions),
+ "linear;%s;cubic;%s",
+ _("Linear interpolation"),
+ _("Cubic interpolation"));
lambda_f_opt = G_define_option();
lambda_f_opt->key = "lambda_i";
More information about the grass-commit
mailing list