[GRASS-SVN] r63123 - grass/trunk/vector/v.out.vtk

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 26 08:41:56 PST 2014


Author: martinl
Date: 2014-11-26 08:41:56 -0800 (Wed, 26 Nov 2014)
New Revision: 63123

Modified:
   grass/trunk/vector/v.out.vtk/main.c
Log:
v.out.vtk: use standardized options (#2409)

Modified: grass/trunk/vector/v.out.vtk/main.c
===================================================================
--- grass/trunk/vector/v.out.vtk/main.c	2014-11-26 16:39:59 UTC (rev 63122)
+++ grass/trunk/vector/v.out.vtk/main.c	2014-11-26 16:41:56 UTC (rev 63123)
@@ -52,6 +52,8 @@
 
     input = G_define_standard_option(G_OPT_V_INPUT);
 
+    layer_opt = G_define_standard_option(G_OPT_V_FIELD);
+    
     output = G_define_standard_option(G_OPT_F_OUTPUT);
     output->required = NO;
     output->description = _("Name for output VTK file");
@@ -61,26 +63,21 @@
     type_opt->options = "point,kernel,centroid,line,boundary,area,face";
 
     dp_opt = G_define_option();
-    dp_opt->key = "dp";
+    dp_opt->key = "precision";
     dp_opt->type = TYPE_INTEGER;
     dp_opt->required = NO;
     dp_opt->description =
 	_("Number of significant digits (floating point only)");
 
     scale = G_define_option();
-    scale->key = "scale";
+    scale->key = "zmultiplier";
     scale->type = TYPE_DOUBLE;
     scale->required = NO;
     scale->description = _("Scale factor for elevation");
     scale->answer = "1.0";
 
-    layer_opt = G_define_option();
-    layer_opt->key = "layer";
-    layer_opt->type = TYPE_INTEGER;
-    layer_opt->required = NO;
-    layer_opt->answer = "1";
-    layer_opt->description = _("Layer number");
 
+
     coorcorr = G_define_flag();                                            
     coorcorr->key = 'c';                                                   
     coorcorr->description = 



More information about the grass-commit mailing list