[GRASS-SVN] r47725 - grass/branches/releasebranch_6_4/raster3d/r3.cross.rast

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 17 18:03:05 EDT 2011


Author: neteler
Date: 2011-08-17 15:03:05 -0700 (Wed, 17 Aug 2011)
New Revision: 47725

Modified:
   grass/branches/releasebranch_6_4/raster3d/r3.cross.rast/description.html
   grass/branches/releasebranch_6_4/raster3d/r3.cross.rast/main.c
Log:
Milena Nowotarska: i18n cleanup; HTML cleanup

Modified: grass/branches/releasebranch_6_4/raster3d/r3.cross.rast/description.html
===================================================================
--- grass/branches/releasebranch_6_4/raster3d/r3.cross.rast/description.html	2011-08-17 21:55:49 UTC (rev 47724)
+++ grass/branches/releasebranch_6_4/raster3d/r3.cross.rast/description.html	2011-08-17 22:03:05 UTC (rev 47725)
@@ -1,13 +1,13 @@
-<H2>DESCRIPTION</H2>
+<h2>DESCRIPTION</h2>
 
-This module creates a cross section 2D map from one G3D raster volume
-map based on a 2D elevation map.  It checks if the value of the
-elevation map is located in the z-coordinate space of the 3D map.  If
+This module creates a cross section 2D map from one 3D raster volume
+map based on a 2D elevation map. It checks if the value of the
+elevation map is located in the z-coordinate space of the 3D map. If
 so, the 3D voxel value for this position is transferred to the related
 cross section output map cell, otherwise the NULL value is set.
 
 <center>
-<img src=r3.cross.rast.png border=0><BR>
+<img src=r3.cross.rast.png border=0><br>
 <table border=0 width=700>
 <tr><td><center>
 <i>How r3.cross.rast works</i>
@@ -15,15 +15,12 @@
 </table>
 </center>
 
-
-<br>
-<br>
+<p>
 If the 2D and 3D region settings are different,
 the 2D resolution will be adjust to the 3D resolution.
 
+<h2>NOTES</h2>
 
-<H2>NOTES</H2>
-
 To create a cut plane elevation map use <em>r.mapcalc</em>. Some examples:
 <ul>
  <li>To create a cut plane elevation map in x direction type
@@ -42,9 +39,9 @@
      using <br><i>r.mapcalc "cutplane = (row()+col())*x"</i></li>
 </ul>
 
-<H2>EXAMPLE</H2>
+<h2>EXAMPLE</h2>
 
-<H3>Simple Spearfish example</H3>
+<h3>Simple Spearfish example</h3>
 
 <div class="code"><pre>
 g.region -d
@@ -60,15 +57,14 @@
 r3.cross.rast input=map3d elevation=cutplane output=crosssection
 </pre></div>
 
+<h2>SEE ALSO</h2>
 
-<H2>SEE ALSO</H2>
+<em><a href="g.region.html">g.region</a></em><br>
+<em><a href="r.mapcalc.html">r.mapcalc</a></em><br>
+<em><a href="r3.mapcalc.html">r3.mapcalc</a></em><br>
+<em><a href="r3.to.rast.html">r3.to.rast</a></em><br>
 
-<EM><A HREF="g.region.html">g.region</A></EM><br>
-<EM><A HREF="r.mapcalc.html">r.mapcalc</A></EM><br>
-<EM><A HREF="r3.mapcalc.html">r3.mapcalc</A></EM><br>
-<EM><A HREF="r3.to.rast.html">r3.to.rast</A></EM><br>
-
-<H2>AUTHOR</H2>
+<h2>AUTHOR</h2>
 Soeren Gebbert
 
 <p><i>Last changed: $Date$</i>

Modified: grass/branches/releasebranch_6_4/raster3d/r3.cross.rast/main.c
===================================================================
--- grass/branches/releasebranch_6_4/raster3d/r3.cross.rast/main.c	2011-08-17 21:55:49 UTC (rev 47724)
+++ grass/branches/releasebranch_6_4/raster3d/r3.cross.rast/main.c	2011-08-17 22:03:05 UTC (rev 47725)
@@ -52,7 +52,7 @@
 
     if (map != NULL) {
 	if (!G3d_closeCell(map))
-	    G3d_fatalError(_("Could not close G3D map"));
+	    G3d_fatalError(_("Unable to close 3D raster map"));
     }
 
     /*unopen the output map */
@@ -107,7 +107,7 @@
 
     param.mask = G_define_flag();
     param.mask->key = 'm';
-    param.mask->description = _("Use g3d mask (if exists) with input map");
+    param.mask->description = _("Use 3D raster mask (if exists) with input map");
 }
 
 
@@ -227,14 +227,14 @@
 	    check = G_put_f_raster_row(outfd, fcell);
 	    if (check != 1)
 		fatal_error(map, elevfd, outfd,
-			    _("Could not write raster row"));
+			    _("Unable to write raster row"));
 	}
 
 	if (typeIntern == DCELL_TYPE) {
 	    check = G_put_d_raster_row(outfd, dcell);
 	    if (check != 1)
 		fatal_error(map, elevfd, outfd,
-			    _("Could not write raster row"));
+			    _("Unable to write raster row"));
 	}
     }
     G_debug(3, "\nDone\n");
@@ -269,7 +269,7 @@
     module = G_define_module();
     module->keywords = _("raster3d, voxel");
     module->description =
-	_("Creates cross section 2D raster map from 3d raster map based on 2D elevation map");
+	_("Creates cross section 2D raster map from 3D raster map based on 2D elevation map.");
 
     /* Get parameters from user */
     set_params();
@@ -281,7 +281,7 @@
     G_debug(3, "Open 3D raster map %s", param.input->answer);
 
     if (NULL == G_find_grid3(param.input->answer, ""))
-	G3d_fatalError(_("3d raster map <%s> not found"),
+	G3d_fatalError(_("3D raster map <%s> not found"),
 		       param.input->answer);
 
     /* Figure out the region from the map */
@@ -295,7 +295,7 @@
     /*If not equal, set the 2D windows correct */
     if (rows != region.rows || cols != region.cols) {
 	G_message
-	    (_("The 2d and 3d region settings are different. I will use the g3d settings to adjust the 2d region."));
+	    (_("The 2D and 3D region settings are different. I will use the 3D raster map settings to adjust the 2D region."));
 	G_get_set_window(&window2d);
 	window2d.ns_res = region.ns_res;
 	window2d.ew_res = region.ew_res;
@@ -315,7 +315,7 @@
 			  G3D_USE_CACHE_DEFAULT);
 
     if (map == NULL)
-	G3d_fatalError(_("Error opening 3d raster map <%s>"),
+	G3d_fatalError(_("Unable to open 3D raster map <%s>"),
 		       param.input->answer);
 
     /*Get the output type */
@@ -396,12 +396,12 @@
     }
     else {
 	fatal_error(map, -1, -1,
-		    _("Wrong G3D Datatype! Cannot create raster map."));
+		    _("Wrong 3D raster map datatype! Unable to create raster map."));
     }
 
     /* Close files and exit */
     if (!G3d_closeCell(map))
-	G3d_fatalError(_("Could not close G3D map <%s>"),
+	G3d_fatalError(_("Unable to close 3D raster map <%s>"),
 		       param.input->answer);
 
     return (EXIT_SUCCESS);



More information about the grass-commit mailing list