[GRASS-SVN] r42408 - in grass/trunk: gui/wxpython/xml visualization/nviz2/cmd

svn_grass at osgeo.org svn_grass at osgeo.org
Mon May 31 09:25:00 EDT 2010


Author: martinl
Date: 2010-05-31 09:24:59 -0400 (Mon, 31 May 2010)
New Revision: 42408

Modified:
   grass/trunk/gui/wxpython/xml/menudata.xml
   grass/trunk/visualization/nviz2/cmd/main.c
   grass/trunk/visualization/nviz2/cmd/nviz_cmd.html
Log:
nviz_cmd: cosmetics in description, some examples, added to wxGUI menu


Modified: grass/trunk/gui/wxpython/xml/menudata.xml
===================================================================
--- grass/trunk/gui/wxpython/xml/menudata.xml	2010-05-31 10:51:22 UTC (rev 42407)
+++ grass/trunk/gui/wxpython/xml/menudata.xml	2010-05-31 13:24:59 UTC (rev 42408)
@@ -252,7 +252,7 @@
 	    </menuitem>
 	    <menuitem>
 	      <label>Matlab array or Mapgen format import</label>
-	      <help>Import Mapgen or Matlab vector maps into GRASS.</help>
+	      <help>Imports Mapgen or Matlab vector maps into GRASS.</help>
 	      <keywords>vector,import</keywords>
 	      <handler>OnMenuCmd</handler>
 	      <command>v.in.mapgen</command>
@@ -554,8 +554,8 @@
 	  <items>
 	    <menuitem>
 	      <label>Raster to vector</label>
-	      <help>Converts a raster map into a vector map layer.</help>
-	      <keywords>raster</keywords>
+	      <help>Converts a raster map into a vector map.</help>
+	      <keywords>raster,conversion,vectorization</keywords>
 	      <handler>OnMenuCmd</handler>
 	      <command>r.to.vect</command>
 	    </menuitem>
@@ -637,6 +637,13 @@
 	  <handler>OnMenuCmd</handler>
 	  <command>nviz</command>
 	</menuitem>
+	<menuitem>
+	  <label>NVIZ (non-interactive)</label>
+	  <help>Allows rendering GIS data is a 3D space.</help>
+	  <keywords>visualization,raster,vector,raster3d</keywords>
+	  <handler>OnMenuCmd</handler>
+	  <command>nviz_cmd</command>
+	</menuitem>
 	<separator />
 	<menuitem>
 	  <label>Bearing/distance to coordinates</label>
@@ -909,7 +916,7 @@
 	  <items>
 	    <menuitem>
 	      <label>Color tables</label>
-	      <help>Creates/modifies the color table associated with a raster map layer.</help>
+	      <help>Creates/modifies the color table associated with a raster map.</help>
 	      <keywords>raster,color table</keywords>
 	      <handler>OnMenuCmd</handler>
 	      <command>r.colors</command>
@@ -923,7 +930,7 @@
 	    </menuitem>
 	    <menuitem>
 	      <label>Color rules</label>
-	      <help>Creates/modifies the color table associated with a raster map layer.</help>
+	      <help>Creates/modifies the color table associated with a raster map.</help>
 	      <keywords>raster,color table</keywords>
 	      <handler>RulesCmd</handler>
 	      <command>r.colors</command>

Modified: grass/trunk/visualization/nviz2/cmd/main.c
===================================================================
--- grass/trunk/visualization/nviz2/cmd/main.c	2010-05-31 10:51:22 UTC (rev 42407)
+++ grass/trunk/visualization/nviz2/cmd/main.c	2010-05-31 13:24:59 UTC (rev 42408)
@@ -5,7 +5,7 @@
  *               
  * AUTHOR(S):    Martin Landa <landa.martin gmail.com> (Google SoC 2008/2010)
  *               
- * PURPOSE:      Experimental NVIZ CLI prototype
+ * PURPOSE:      Renders GIS data in 3D space.
  *               
  * COPYRIGHT:    (C) 2008,2010 by the GRASS Development Team
  *
@@ -47,7 +47,10 @@
     G_add_keyword(_("raster"));
     G_add_keyword(_("vector"));
     G_add_keyword(_("raster3d"));
-    module->description = _("Experimental NVIZ CLI prototype.");
+    module->label = _("Allows rendering GIS data is a 3D space.");
+    module->description = _("Renders surfaces (raster data), "
+			    "2D/3D vector data, and "
+			    "volumes (3D raster data) in a 3D space.");
 
     params = (struct GParams *)G_malloc(sizeof(struct GParams));
 

Modified: grass/trunk/visualization/nviz2/cmd/nviz_cmd.html
===================================================================
--- grass/trunk/visualization/nviz2/cmd/nviz_cmd.html	2010-05-31 10:51:22 UTC (rev 42407)
+++ grass/trunk/visualization/nviz2/cmd/nviz_cmd.html	2010-05-31 13:24:59 UTC (rev 42408)
@@ -1,19 +1,29 @@
 <h2>DESCRIPTION</h2>
 
-Experimental CLI prototype of NVIZ.
+<em>nviz_cmd</em> allows users to realistically render multiple
+<em>surfaces</em> (raster data) in a 3D space, optionally using
+thematic coloring, draping 2D <em>vector</em> data over the surfaces,
+displaying 3D vector data in the space, and visualization
+of <em>volume</em> data (3D raster data) from the command line.
 
-<p>
-TODO
+<h2>EXAMPLE</h2>
 
+Render elevation map in a 3D space.
+
+<div class="code"><pre>
+g.region rast=elevation
+nviz_cmd elevation_map=elevation output=elev perspective=15
+</pre></div>
+
 <h2>SEE ALSO</h2>
 
 <em>
-<a HREF="nviz.html">TCL/TK-based NVIZ</a>
+<a HREF="wxGUI.Nviz.html">wxGUI 3D Viewer</a>
 </em>
 
 <h2>AUTHOR</h2>
 
-Martin Landa (Google Summer of Code 2008)
+Martin Landa (Google Summer of Code 2008/2010)
 
 <p>
 <i>Last changed: $Date$</i>



More information about the grass-commit mailing list