浏览代码

v.surf.bspline: fix type_opt

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@56457 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 12 年之前
父节点
当前提交
a3539b6d11
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      vector/v.surf.bspline/main.c

+ 7 - 1
vector/v.surf.bspline/main.c

@@ -152,11 +152,17 @@ int main(int argc, char *argv[])
 	_("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";