[GRASS-SVN] r63024 - grass/trunk/raster/r.out.vrml

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 26 04:59:15 PST 2014


Author: martinl
Date: 2014-11-26 04:59:15 -0800 (Wed, 26 Nov 2014)
New Revision: 63024

Modified:
   grass/trunk/raster/r.out.vrml/main.c
Log:
r.out.vrml use standardized options (#2409)

Modified: grass/trunk/raster/r.out.vrml/main.c
===================================================================
--- grass/trunk/raster/r.out.vrml/main.c	2014-11-26 12:56:39 UTC (rev 63023)
+++ grass/trunk/raster/r.out.vrml/main.c	2014-11-26 12:59:15 UTC (rev 63024)
@@ -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