浏览代码

r.plane manual: example improved (#900)

- more reasonable values
- screenshot added
Markus Neteler 4 年之前
父节点
当前提交
964f969aff
共有 2 个文件被更改,包括 18 次插入3 次删除
  1. 18 3
      scripts/r.plane/r.plane.html
  2. 二进制
      scripts/r.plane/r_plane_3d.png

+ 18 - 3
scripts/r.plane/r.plane.html

@@ -26,12 +26,27 @@ which in turn take up less space than <em>DCELL</em>s (double precision floating
 A tilted plane in the North Carolina sample dataset region:
 
 <div class="code"><pre>
-g.region -d
+# set computational region
+g.region raster=elev_lid792_1m -p
+
+# get center coordinates as an example
 g.region -c
-r.plane myplane45 dip=45 az=90 east=527500.0 north=165000.0 \
-        elev=1000 type=FCELL
+# get terrain height at point
+r.what map=elev_lid792_1m coordinates=638650.0,220375.0
+# shows elevation: 116.7734
+
+# generate tilted plane
+r.plane myplane30 dip=30 az=75 east=638650.0 north=220375.0 \
+        elev=116.7734 type=FCELL
 </pre></div>
 
+<div align="center" style="margin: 10px">
+<a href="r_plane_3d.png">
+<img src="r_plane_3d.png" width="600" height="360" alt="r.plane example" border="0">
+</a><br>
+<i>Figure: Tilted plane shown in NVIZ along with elevation map</i>
+</div>
+
 
 <h2>AUTHOR</h2>
 

二进制
scripts/r.plane/r_plane_3d.png