[GRASS-SVN] r74335 - in grass/trunk: raster/r.out.png vector/v.in.region

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Apr 2 09:30:24 PDT 2019


Author: neteler
Date: 2019-04-02 09:30:24 -0700 (Tue, 02 Apr 2019)
New Revision: 74335

Modified:
   grass/trunk/raster/r.out.png/r.out.png.html
   grass/trunk/vector/v.in.region/v.in.region.html
Log:
r.out.png + v.in.region manuals: examples added

Modified: grass/trunk/raster/r.out.png/r.out.png.html
===================================================================
--- grass/trunk/raster/r.out.png/r.out.png.html	2019-04-02 08:56:48 UTC (rev 74334)
+++ grass/trunk/raster/r.out.png/r.out.png.html	2019-04-02 16:30:24 UTC (rev 74335)
@@ -1,6 +1,6 @@
 <h2>DESCRIPTION</h2>
 
-<em>r.out.png</em> exports a GRASS raster map in non-georeferenced
+<em>r.out.png</em> exports a GRASS GIS raster map in non-georeferenced
 Portable Network Graphics (PNG) image format, respecting the current
 region resolution and bounds.
 
@@ -12,6 +12,20 @@
 the world file will be called <tt>png_map.wld</tt>.
 
 
+<h2>EXAMPLE</h2>
+
+The example is based on the North Carolina sample data location.
+<p>
+Export of the soil map to PNG format with world file:
+
+<div class="code"><pre>
+g.region raster=soils_Kfactor -p
+# export PNG file with additional world file
+r.out.png input=soils_Kfactor output=soils_Kfactor -w
+# verify
+gdalinfo soils_Kfactor.png
+</pre></div>
+
 <h2>SEE ALSO</h2>
 
 <em>

Modified: grass/trunk/vector/v.in.region/v.in.region.html
===================================================================
--- grass/trunk/vector/v.in.region/v.in.region.html	2019-04-02 08:56:48 UTC (rev 74334)
+++ grass/trunk/vector/v.in.region/v.in.region.html	2019-04-02 16:30:24 UTC (rev 74335)
@@ -9,12 +9,30 @@
 region to the raster map to be reprojected with
 <em><a href="r.proj.html">r.proj</a></em>.
 
+
+<h2>EXAMPLE</h2>
+
+The example is based on the North Carolina sample data location.
+To create a bounding box vector map based on a raster map, the 
+computational region is first set to the raster map. Then a
+vector bounding box is created based on the actual computational
+region (in this case precisely reflecting the pixel geometry of
+the raster map), resulting in a new vector polygon:
+
+<div class="code"><pre>
+g.region raster=soils_Kfactor -p
+v.in.region output=soils_Kfactor_bbox
+v.info map=soils_Kfactor_bbox
+</pre></div>
+
+
+
 <h2>SEE ALSO</h2>
 
 <em>
-  <a href="g.region.html">g.region</a>,
-  <a href="d.vect.html">d.vect</a>,
-  <a href="r.proj.html">r.proj</a>
+<a href="g.region.html">g.region</a>,
+<a href="r.proj.html">r.proj</a>,
+<a href="v.info.html">v.info</a>
 </em>
 
 <h2>AUTHOR</h2>



More information about the grass-commit mailing list