Browse Source

v.net.visibility: description module cosmetics
manual cleaning


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57896 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 12 years ago
parent
commit
ada3db2db5
2 changed files with 31 additions and 22 deletions
  1. 1 1
      vector/v.net.visibility/main.c
  2. 30 21
      vector/v.net.visibility/v.net.visibility.html

+ 1 - 1
vector/v.net.visibility/main.c

@@ -46,7 +46,7 @@ int main(int argc, char *argv[])
     G_add_keyword(_("network"));
     G_add_keyword(_("network"));
     G_add_keyword(_("shortest path"));
     G_add_keyword(_("shortest path"));
     G_add_keyword(_("visibility"));
     G_add_keyword(_("visibility"));
-    module->description = _("Visibility graph construction.");
+    module->description = _("Performs visibility graph construction.");
 
 
     /* define the arguments needed */
     /* define the arguments needed */
     input = G_define_standard_option(G_OPT_V_INPUT);
     input = G_define_standard_option(G_OPT_V_INPUT);

+ 30 - 21
vector/v.net.visibility/v.net.visibility.html

@@ -9,16 +9,20 @@ in between them, i.e. the edge doesn't intersect any line or boundary
 in the vector map. This is useful to compute the sortest path in a
 in the vector map. This is useful to compute the sortest path in a
 vector map from any two points. To do this, first you need to compute
 vector map from any two points. To do this, first you need to compute
 the visibility graph and from it compute the shortest path using
 the visibility graph and from it compute the shortest path using
-<em>v.net.path</em> or <em>d.path</em>.
+<em><a href="v.net.path.html">v.net.path</a></em>
+or <em><a href="d.path.html">d.path</a></em>.
 
 
+<p>
 <b>IMPORTANT: the algorithm doesn't work well with intersecting lines
 <b>IMPORTANT: the algorithm doesn't work well with intersecting lines
 (that includes overlapping)</b>
 (that includes overlapping)</b>
 
 
-<p>
-If you compute a shortest path after computing the visibility graph you
-will notice that this path might go through a vertix of a line. If this
-is not wanted you might to run the map through <em>v.buffer</em> first
-whith a small value. Example:
+<h2>NOTES</h2>
+
+If you compute a shortest path after computing the visibility graph
+you will notice that this path might go through a vertix of a line. If
+this is not wanted you might to run the map
+through <em><a href="v.buffer.html">v.buffer</a></em> first whith a
+small value. Example:
 
 
 <div class="code"><pre>
 <div class="code"><pre>
 v.buffer input=map output=bufferedmap buffer=1 type=point,line,area,boundary
 v.buffer input=map output=bufferedmap buffer=1 type=point,line,area,boundary
@@ -50,7 +54,9 @@ v.net.visibility input=map vis=vis_map output=new_vis_map \
       coordinate=25556200,6686400,25556400,6686600
       coordinate=25556200,6686400,25556400,6686600
 </pre></div>
 </pre></div>
 
 
-<h2>EXAMPLE 1</h2>
+<h2>EXAMPLES</h2>
+
+<h3>Example 1</h3>
 A simple example showing how to use the module
 A simple example showing how to use the module
 <div class="code"><pre>
 <div class="code"><pre>
 v.net.visibility input=lines output=graph
 v.net.visibility input=lines output=graph
@@ -58,8 +64,8 @@ d.vect graph
 d.vect lines col=red
 d.vect lines col=red
 </pre></div>
 </pre></div>
 
 
-<h2>EXAMPLE 2</h2>
-An example on how to use <em>v.buffer</em> with the module 
+<h3>Example 2</h3>
+An example on how to use <em><a href="v.buffer.html">v.buffer</a></em> with the module 
 <div class="code"><pre>
 <div class="code"><pre>
 v.buffer input=lines output=buffered_lines buffer=1
 v.buffer input=lines output=buffered_lines buffer=1
 v.net.visibility input=buffered_lines output=graph
 v.net.visibility input=buffered_lines output=graph
@@ -68,7 +74,7 @@ d.vect lines col=red
 </pre></div>
 </pre></div>
 
 
 
 
-<h2>EXAMPLE 3</h2>
+<h3>Example 3</h3>
 An example on how to use the coordinate parameter. This will compute the
 An example on how to use the coordinate parameter. This will compute the
 visibility graph of the vector map lines with the point 2555678,6686343
 visibility graph of the vector map lines with the point 2555678,6686343
 <div class="code"><pre>
 <div class="code"><pre>
@@ -77,7 +83,7 @@ d.vect graph
 d.vect lines col=red
 d.vect lines col=red
 </pre></div>
 </pre></div>
 
 
-<h2>EXAMPLE 4</h2>
+<h3>Example 4</h3>
 An example on how to use the coordinate parameter with the vis parameter.
 An example on how to use the coordinate parameter with the vis parameter.
 Here the vector map graph is computed then a new visibility graph is computed
 Here the vector map graph is computed then a new visibility graph is computed
 from it with the point 2555678,6686343 extra
 from it with the point 2555678,6686343 extra
@@ -93,12 +99,12 @@ d.vect lines col=red
 </pre></div>
 </pre></div>
 
 
 
 
-<h2>EXAMPLE 5</h2>
+<h3>Example 5</h3>
 An example for connections of points (Spearfish):
 An example for connections of points (Spearfish):
 <div class="code"><pre>
 <div class="code"><pre>
 v.net.visibility input=archsites output=graph
 v.net.visibility input=archsites output=graph
 g.region vect=archsites
 g.region vect=archsites
-d.mon x0
+d.mon wx0
 d.vect graph
 d.vect graph
 d.vect archsites col=red
 d.vect archsites col=red
 </pre></div>
 </pre></div>
@@ -111,16 +117,19 @@ visible, some wrong edges are added.
 
 
 <h2>SEE ALSO</h2>
 <h2>SEE ALSO</h2>
 
 
-<em><a href="d.path.html">d.path</a></em>,
-<em><a href="v.net.html">v.net</a></em>,
-<em><a href="v.net.alloc.html">v.net.alloc</a></em>,
-<em><a href="v.net.iso.html">v.net.iso</a></em>,
-<em><a href="v.net.salesman.html">v.net.salesman</a></em>,
-<em><a href="v.net.steiner.html">v.net.steiner</a></em>,
-<em><a href="v.to.db.html">v.to.db</a></em>
+<em>
+<a href="d.path.html">d.path</a>,
+<a href="v.net.html">v.net</a>,
+<a href="v.net.alloc.html">v.net.alloc</a>,
+<a href="v.net.iso.html">v.net.iso</a>,
+<a href="v.net.salesman.html">v.net.salesman</a>,
+<a href="v.net.steiner.html">v.net.steiner</a>,
+<a href="v.to.db.html">v.to.db</a>
+</em>
 
 
 <h2>AUTHOR</h2>
 <h2>AUTHOR</h2>
 Maximilian Maldacker<br>
 Maximilian Maldacker<br>
 Mentor: Wolf Bergenheim
 Mentor: Wolf Bergenheim
 
 
-<p><i>Last changed: $Date$</i>
+<p>
+<i>Last changed: $Date$</i>