[GRASS-SVN] r60861 - grass/trunk/raster/r.viewshed
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jun 18 01:52:08 PDT 2014
Author: neteler
Date: 2014-06-18 01:52:08 -0700 (Wed, 18 Jun 2014)
New Revision: 60861
Modified:
grass/trunk/raster/r.viewshed/grass.cpp
grass/trunk/raster/r.viewshed/r.viewshed.html
Log:
r.viewshed: error msg cosmetics; manual cosmetics
Modified: grass/trunk/raster/r.viewshed/grass.cpp
===================================================================
--- grass/trunk/raster/r.viewshed/grass.cpp 2014-06-18 08:51:26 UTC (rev 60860)
+++ grass/trunk/raster/r.viewshed/grass.cpp 2014-06-18 08:52:08 UTC (rev 60861)
@@ -111,7 +111,7 @@
else {
G_warning("ERROR: nrows (%d) > maxDimension (%d) AND/OR ncols (%d) > maxDimension (%d)",
nrows, maxDimension, ncols, maxDimension);
- G_fatal_error(_("Grid dimension too big for current precision"));
+ G_fatal_error(_("Computational region too large. Use smaller area or lower raster resolution"));
}
Modified: grass/trunk/raster/r.viewshed/r.viewshed.html
===================================================================
--- grass/trunk/raster/r.viewshed/r.viewshed.html 2014-06-18 08:51:26 UTC (rev 60860)
+++ grass/trunk/raster/r.viewshed/r.viewshed.html 2014-06-18 08:52:08 UTC (rev 60861)
@@ -172,12 +172,14 @@
<h2>EXAMPLES</h2>
-Compute viewshed from the point with coordinates 638728.087167, 220609.261501
-which is 5 meters above ground (using NC dataset):
+Using the North Carolina dataset: Compute viewshed from a observation
+point (coordinates: 638728.087167, 220609.261501) which is 5 meters
+above ground:
<div class="code"><pre>
-g.region rast=elev_lid792_1m
-r.viewshed input=elev_lid792_1m output=elev_lid792_1m_viewshed coordinates=638728.087167,220609.261501 obs_elev=5
+g.region rast=elev_lid792_1m -p
+r.viewshed input=elev_lid792_1m output=elev_lid792_1m_viewshed \
+ coordinates=638728.087167,220609.261501 obs_elev=5.0
</pre></div>
<div align="center" style="margin: 10px">
@@ -185,22 +187,23 @@
<i>Viewshed</i>
</div>
<!--
-image generated using
+# image generated using
d.mon wx0
d.rast elev_lid792_1m
d.rast elev_lid792_1m_viewshed
-save image to files
-crop the background using Gimp or ImageMagic
+# save image to files
+# crop the background using Gimp or ImageMagic
mogrify -trim *.png
-some bounding box problems noticed when opening mogrify result in Gimp
+# some bounding box problems noticed when opening mogrify result in Gimp
-->
-Using the Spearfish dataset: calculating the viewpoint from the top
+Using the Spearfish dataset: calculating the viewpoint from top
of a mountain:
<div class="code"><pre>
g.region rast=elevation.10m
-r.viewshed input=elevation.10m output=viewshed coordinate=598869,4916642 mem=800
+r.viewshed input=elevation.10m output=viewshed \
+ coordinates=598869,4916642 mem=800
</pre></div>
@@ -208,18 +211,15 @@
<ul>
- <li>Computing Visibility on Terrains in External Memory. Herman
- Haverkort, Laura Toma and Yi Zhuang. In <em>ACM Journal
- on Experimental Algorithmics (JEA)</em> 13 (2009).
+<li>Computing Visibility on Terrains in External Memory. Herman
+Haverkort, Laura Toma and Yi Zhuang. In <em>ACM Journal on Experimental
+Algorithmics (JEA)</em> 13 (2009).</li>
- <li><a
- href="http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.76.4282&rep=rep1&type=pdf">
- Computing Visibility on Terrains in External Memory</a>. Herman
- Haverkort, Laura Toma and Yi Zhuang. In the <em>Proceedings of
- the 9th Workshop on Algorithm Engineering and Experiments /
- Workshop on Analytic Algorithms and Combinatorics (ALENEX/ANALCO
- 2007)</em>.</li>
-
+<li><a href="http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.76.4282&rep=rep1&type=pdf">Computing
+Visibility on Terrains in External Memory</a>. Herman Haverkort, Laura
+Toma and Yi Zhuang. In the <em>Proceedings of the 9th Workshop on
+Algorithm Engineering and Experiments / Workshop on Analytic Algorithms
+and Combinatorics (ALENEX/ANALCO 2007)</em>.</li>
</ul>
<h2>SEE ALSO</h2>
More information about the grass-commit
mailing list