Browse Source

manual prettified

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@53047 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 13 years ago
parent
commit
3b50faceb5
1 changed files with 17 additions and 9 deletions
  1. 17 9
      raster/r.grow.distance/r.grow.distance.html

+ 17 - 9
raster/r.grow.distance/r.grow.distance.html

@@ -16,12 +16,15 @@ between two points that one would measure with a ruler, which can be
 proven by repeated application of the Pythagorean theorem. 
 The formula is given by: 
 
-<div class="code"><pre>d(dx,dy) = sqrt(dx^2 + dy^2)</pre></div>
+<div class="code"><pre>
+d(dx,dy) = sqrt(dx^2 + dy^2)
+</pre></div>
 
 Cells grown using this metric would form isolines of distance that are
 circular from a given point, with the distance given by the <b>radius</b>.
 
-<p>The <i>Squared</i> metric is the <i>Euclidean</i> distance squared,
+<p>
+The <i>Squared</i> metric is the <i>Euclidean</i> distance squared,
 i.e. it simply omits the square-root calculation. This may be faster,
 and is sufficient if only relative values are required.
 
@@ -35,7 +38,9 @@ car could take between two points in the city to have length equal to the
 points' distance in taxicab geometry.
 The formula is given by:
 
-<div class="code"><pre>d(dx,dy) = abs(dx) + abs(dy)</pre></div>
+<div class="code"><pre>
+d(dx,dy) = abs(dx) + abs(dy)
+</pre></div>
 
 where cells grown using this metric would form isolines of distance that are
 rhombus-shaped from a given point. 
@@ -43,25 +48,28 @@ rhombus-shaped from a given point.
 <p>
 The <i>Maximum metric</i> is given by the formula
 
-<div class="code"><pre>d(dx,dy) = max(abs(dx),abs(dy))</pre></div>
+<div class="code"><pre>
+d(dx,dy) = max(abs(dx),abs(dy))
+</pre></div>
 
 where the isolines of distance from a point are squares.
 
 
 <h2>EXAMPLE</h2>
 
-Spearfish sample dataset
+Distance from the streams network (North Carolina sample dataset):
 <div class="code"><pre>
-r.grow.distance in=roads dist=dist_from_roads
+g.region rast=streams_derived -p
+r.grow.distance input=streams_derived distance=dist_from_streams
 </pre></div>
 
 
 <h2>SEE ALSO</h2>
 
 <em>
-<a href="r.grow.html">r.grow</a><br>
-<a href="r.buffer.html">r.buffer</a><br>
-<a href="r.cost.html">r.cost</a><br>
+<a href="r.grow.html">r.grow</a>,
+<a href="r.buffer.html">r.buffer</a>,
+<a href="r.cost.html">r.cost</a>,
 <a href="r.patch.html">r.patch</a>
 </em>