Prechádzať zdrojové kódy

r.out.png + v.in.region manuals: examples added

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@74335 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 6 rokov pred
rodič
commit
e53214b48f

+ 15 - 1
raster/r.out.png/r.out.png.html

@@ -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 @@ Google Earth or as OpenLayers tiles) If output is redirected to stdout,
 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>

+ 21 - 3
vector/v.in.region/v.in.region.html

@@ -9,12 +9,30 @@ reprojection, the <b>-d</b> flag should be used after setting the
 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>