[GRASS-SVN] r63025 - grass/branches/releasebranch_7_0/raster/r.out.vrml

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 26 05:04:13 PST 2014


Author: martinl
Date: 2014-11-26 05:04:12 -0800 (Wed, 26 Nov 2014)
New Revision: 63025

Modified:
   grass/branches/releasebranch_7_0/raster/r.out.vrml/main.c
Log:
r.out.vrml: use standardized options (#2409) - (merge r63024 from trunk)

Modified: grass/branches/releasebranch_7_0/raster/r.out.vrml/main.c
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.out.vrml/main.c	2014-11-26 12:59:15 UTC (rev 63024)
+++ grass/branches/releasebranch_7_0/raster/r.out.vrml/main.c	2014-11-26 13:04:12 UTC (rev 63025)
@@ -50,22 +50,15 @@
     module->description =
 	_("Exports a raster map to the Virtual Reality Modeling Language (VRML).");
 
-    rast_el = G_define_option();
-    rast_el->key = "elev";
-    rast_el->type = TYPE_STRING;
-    rast_el->required = YES;
-    rast_el->gisprompt = "old,cell,raster";
-    rast_el->description = _("Name of elevation map");
+    rast_el = G_define_standard_option(G_OPT_R_ELEV);
 
-    rast_co = G_define_option();
+    rast_co = G_define_standard_option(G_OPT_R_INPUT);
     rast_co->key = "color";
-    rast_co->type = TYPE_STRING;
     rast_co->required = NO;
-    rast_co->gisprompt = "old,cell,raster";
-    rast_co->description = _("Name of color map");
+    rast_co->description = _("Name of input color map");
 
     exag_opt = G_define_option();
-    exag_opt->key = "exag";
+    exag_opt->key = "exaggeration";
     exag_opt->type = TYPE_DOUBLE;
     exag_opt->required = NO;
     exag_opt->answer = "1.0";



More information about the grass-commit mailing list