[GRASS-SVN] r46554 - in grass/trunk/vector: v.net.centrality v.net.components v.net.connectivity v.net.distance v.net.flow v.net.iso v.net.path v.net.salesman v.net.spanningtree v.net.steiner v.net.timetable

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jun 3 12:18:07 EDT 2011


Author: mmetz
Date: 2011-06-03 09:18:07 -0700 (Fri, 03 Jun 2011)
New Revision: 46554

Modified:
   grass/trunk/vector/v.net.centrality/v.net.centrality.html
   grass/trunk/vector/v.net.components/v.net.components.html
   grass/trunk/vector/v.net.connectivity/v.net.connectivity.html
   grass/trunk/vector/v.net.distance/v.net.distance.html
   grass/trunk/vector/v.net.flow/v.net.flow.html
   grass/trunk/vector/v.net.iso/v.net.iso.html
   grass/trunk/vector/v.net.path/v.net.path.html
   grass/trunk/vector/v.net.salesman/v.net.salesman.html
   grass/trunk/vector/v.net.spanningtree/v.net.spanningtree.html
   grass/trunk/vector/v.net.steiner/v.net.steiner.html
   grass/trunk/vector/v.net.timetable/v.net.timetable.html
Log:
update manuals

Modified: grass/trunk/vector/v.net.centrality/v.net.centrality.html
===================================================================
--- grass/trunk/vector/v.net.centrality/v.net.centrality.html	2011-06-03 16:17:17 UTC (rev 46553)
+++ grass/trunk/vector/v.net.centrality/v.net.centrality.html	2011-06-03 16:18:07 UTC (rev 46554)
@@ -1,14 +1,31 @@
 <h2>DESCRIPTION</h2>
 
-<em>v.net.centrality</em> computes degree, closeness, betweenness and eigenvector centrality measures. 
+<em>v.net.centrality</em> computes degree, closeness, betweenness and 
+eigenvector centrality measures. 
 
 <h2>NOTES</h2>
 
-The module computes various centrality measures for each node and stores them in the given columns of an attribute table, which is created and linked to the output map. For the description of these, please check the following <a href="http://en.wikipedia.org/wiki/Centrality">wikipedia article</a>. If the column name is not given for a measure then that measure is not computed. If <b>-a</b> flag is set then points are added on nodes without points. Also, the points for which the output is computed can be specified by <b>cats</b>, <b>layer</b> and <b>where</b> parameters. However, if any of these parameters is present then <b>-a</b> flag is ingored and no new points are added.<br>
-Betwenness measure is not normalised. In order to get the normalised values (between 0 and 1), each number needs to be divided by <em>N choose 2=N*(N-1)/2</em> where N is the number of nodes in the connected component. Computation of eigenvector measure terminates if the given number of iterations is reached or the cummulative <em>squared</em> error between the successive iterations is less than <b>error</b>.
+The module computes various centrality measures for each node and stores 
+them in the given columns of an attribute table, which is created and 
+linked to the output map. For the description of these, please check the 
+following <a href="http://en.wikipedia.org/wiki/Centrality">wikipedia article</a>. 
+If the column name is not given for a measure then that measure is not 
+computed. If <b>-a</b> flag is set then points are added on nodes without 
+points. Also, the points for which the output is computed can be specified 
+by <b>cats</b>, <b>layer</b> and <b>where</b> parameters. However, if any 
+of these parameters is present then <b>-a</b> flag is ingored and no new 
+points are added.<br>
+Betweenness measure is not normalised. In order to get the normalised 
+values (between 0 and 1), each number needs to be divided by 
+<em>N choose 2=N*(N-1)/2</em> where N is the number of nodes in the 
+connected component. Computation of eigenvector measure terminates if 
+the given number of iterations is reached or the cummulative <em>squared</em> 
+error between the successive iterations is less than <b>error</b>.
 
 <h2>EXAMPLES</h2>
-Compute closeness and betweenness centrality measures for each node and produce a map containing not only points already present in the input map but a map with point on every node. 
+Compute closeness and betweenness centrality measures for each node and 
+produce a map containing not only points already present in the input map 
+but a map with point on every node. 
 <div class="code"><pre>
 v.net.centrality input=roads output=roads_cent closeness=close betweenness=betw -a
 </pre></div>

Modified: grass/trunk/vector/v.net.components/v.net.components.html
===================================================================
--- grass/trunk/vector/v.net.components/v.net.components.html	2011-06-03 16:17:17 UTC (rev 46553)
+++ grass/trunk/vector/v.net.components/v.net.components.html	2011-06-03 16:18:07 UTC (rev 46554)
@@ -1,16 +1,28 @@
 <h2>DESCRIPTION</h2>
 
-<em>v.net.components</em> computes the weakly and strongly connected components in a network.
+<em>v.net.components</em> computes the weakly and strongly connected 
+components in a network.
 
 <h2>NOTES</h2>
-Two nodes, <em>u</em> and <em>v</em> are in the same strongly connected component if there are directed paths from <em>u</em> to <em>v</em> and from <em>v</em> to <em>u</em>. The nodes are in the same weakly connected component if, ignoring orientation of the edges, there is a path between them.<br>
+Two nodes, <em>u</em> and <em>v</em> are in the same strongly connected 
+component if there are directed paths from <em>u</em> to <em>v</em> and 
+from <em>v</em> to <em>u</em>. The nodes are in the same weakly connected 
+component if, ignoring orientation of the edges, there is a path between 
+them.<br>
 
-The type of components is specified by <b>method</b> parameter. Module creates a table and links it to the given <b>layer</b>. This table contains only two integer columns: <em>cat</em> and <em>comp</em>. If a point or both endpoints of a line belong to the same component then the point/line is written to the output map and appropriate information is stored in the table. If <b>-a</b> flag is set then new points are added on the nodes without points. These points have category numbers larger than any category used in the input map.    
+The type of components is specified by <b>method</b> parameter. 
+<em>v.net.components</em> creates a table and links it to the given 
+<b>layer</b>. This table contains only two integer columns: <em>cat</em> 
+and <em>comp</em>. If a point or both endpoints of a line belong to the 
+same component then the point/line is written to the output map and 
+appropriate information is stored in the table. If <b>-a</b> flag is set 
+then new points are added on the nodes without points. These points have 
+category numbers larger than any category used in the input map.    
 
 <h2>EXAMPLES</h2>
 
-Any road network should form a single strongly connected components. Otherwise,
-it is impossible to travel between some places.
+Any road network should form a single strongly connected components. 
+Otherwise, it is impossible to travel between some places.
 <div class="code"><pre>
 v.net.components input=roads output=roads_components method=strong
 </pre></div>

Modified: grass/trunk/vector/v.net.connectivity/v.net.connectivity.html
===================================================================
--- grass/trunk/vector/v.net.connectivity/v.net.connectivity.html	2011-06-03 16:17:17 UTC (rev 46553)
+++ grass/trunk/vector/v.net.connectivity/v.net.connectivity.html	2011-06-03 16:18:07 UTC (rev 46554)
@@ -1,12 +1,21 @@
 <h2>DESCRIPTION</h2>
 
-<em>v.net.connectivity</em> computes vertex connectivity between two sets. i.e., minimum number of vertices whose removal would separate two given sets. 
+<em>v.net.connectivity</em> computes vertex connectivity between two sets,
+ i.e. the minimum number of vertices whose removal would separate two 
+ given sets. 
 
 <h2>NOTES</h2>
-Two sets (<em>set1</em> and <em>set2</em>) are specified by respective <b>layer</b>, <b>where</b> and <b>cats</b> parameters. Similarly to <a HREF="v.net.flow.html">v.net.flow</a> module, capacities of nodes can be given by <b>ncolumn</b> option. Module finds the set of nodes of minimum total capacitiy separating the two given sets and outputs map containing points on the positions of these nodes. Default capacity, which is used when no column is specified, is one.
+Two sets (<em>set1</em> and <em>set2</em>) are specified by respective 
+<b>layer</b>, <b>where</b> and <b>cats</b> parameters. Similarly to 
+<a HREF="v.net.flow.html">v.net.flow</a> module, capacities of nodes can 
+be given by <b>ncolumn</b> option. <em>v.net.connectivity</em> finds the 
+set of nodes of minimum total capacitiy separating the two given sets and 
+outputs map containing points on the positions of these nodes. Default 
+capacity, which is used when no column is specified, is one.
 
 <h2>EXAMPLES</h2>
-The following command finds the minimum number of intersection separating roads on the left bank from roads on the right bank. 
+The following command finds the minimum number of intersections separating 
+roads on the left bank from roads on the right bank. 
 <div class="code"><pre>
 v.net.connectivity input=roads output=roads_conn set1_where="bank=left" set2_where="bank=right"
 </pre></div>

Modified: grass/trunk/vector/v.net.distance/v.net.distance.html
===================================================================
--- grass/trunk/vector/v.net.distance/v.net.distance.html	2011-06-03 16:17:17 UTC (rev 46553)
+++ grass/trunk/vector/v.net.distance/v.net.distance.html	2011-06-03 16:18:07 UTC (rev 46554)
@@ -1,14 +1,32 @@
 <h2>DESCRIPTION</h2>
 
-<em>v.net.distance</em> finds the nearast element from set <em>to</em> for every element in set <em>from</em>. 
+<em>v.net.distance</em> finds the nearast element in set <em>to</em> 
+for every element in set <em>from</em>. 
 
 <h2>NOTES</h2>
 
-These two sets are given by the respective <b>layer</b>, <b>where</b> and <b>cats</b> parameters. The type of <em>to</em> features is specified by <b>to_type</b> parameter and all <em>from</em> features are <em>points</em>. A table is linked to <b>output</b> map containing various information about the relation. More specifically, the table has three columns: <em>cat</em>, <em>tcat</em> and <em>dist</em> storing category of each <em>from</em> feature, category of the nearest <em>to</em> feature and the distance between them respectively. Furthemore, <b>output</b> map contains the shorest path between each <em>cat</em>, <em>tcat</em> pair. Each path consist of several lines. If a line is on the shorest path from a point then the category of this point is assigned to the line. Note that every line may contain more than one category value since single line may be on the shortest path for more than one <em>from</em> feature. And so the shortest paths can be easily obtained by qu
 erying lines with corresponding category number.<br>
-The costs of arcs in forward and backward direction are specified by <b>afcolumn</b> and <b>abcolumn</b> columns respectively. If <b>abcolumn</b> is not given, the same cost is used in both directions.  
+These two sets are given by the respective <b>layer</b>, <b>where</b> 
+and <b>cats</b> parameters. The type of <em>to</em> features is specified 
+by <b>to_type</b> parameter and all <em>from</em> features are <em>points</em>. 
+A table is linked to <b>output</b> map containing various information 
+about the relation. More specifically, the table has three columns: 
+<em>cat</em>, <em>tcat</em> and <em>dist</em> storing category of each 
+<em>from</em> feature, category of the nearest <em>to</em> feature and 
+the distance between them respectively. Furthemore, <b>output</b> map 
+contains the shorest path between each <em>cat</em>, <em>tcat</em> pair. 
+Each path consist of several lines. If a line is on the shorest path 
+from a point then the category of this point is assigned to the line. 
+Note that every line may contain more than one category value since a
+single line may be on the shortest path for more than one <em>from</em> 
+feature. And so the shortest paths can be easily obtained by querying 
+lines with corresponding category number.<br>
+The costs of arcs in forward and backward direction are specified by 
+<b>afcolumn</b> and <b>abcolumn</b> columns respectively. If 
+<b>abcolumn</b> is not given, the same cost is used in both directions.  
 
 <h2>EXAMPLES</h2>
-Find shortest path and distance from every school to the nearest hospital and show path from school number one.
+Find shortest path and distance from every school to the nearest hospital 
+and show path from school number one.
 <div class="code"><pre>
 v.net.distance input=city output=nearest from_where="type=school" to_where="type=hospital" afcolumn=SHAPE_LEN
 d.vect nearest cats=1

Modified: grass/trunk/vector/v.net.flow/v.net.flow.html
===================================================================
--- grass/trunk/vector/v.net.flow/v.net.flow.html	2011-06-03 16:17:17 UTC (rev 46553)
+++ grass/trunk/vector/v.net.flow/v.net.flow.html	2011-06-03 16:18:07 UTC (rev 46554)
@@ -1,10 +1,27 @@
 <h2>DESCRIPTION</h2>
 
-<em>v.net.flow</em> computes the maximum flow and minimum cut between two sets of nodes.
+<em>v.net.flow</em> computes the maximum flow and minimum cut between 
+two sets of nodes.
 
 <h2>NOTES</h2>
-The two sets of nodes are called <em>sources</em> and <em>sink</em> and <em>v.net.flow</em> finds the maximimum flow from the former to the latter ones. Edge capacities can be specified by <b>afcolumn</b> for forward direction and <b>abcolumn</b> for backward direction. If the latter parameter is ommited then the same capacity is used in either direction. The sets are given by the respective <b>cats</b>, <b>layer</b> and <b>where</b> parameters. Maximum flow corresponds to the maximum amount of water possibly flowing through the network preserving the capacity constraints and minimum cut to set of edges of minimum total capacity completely separating sources from sinks. The cut produced by this module corresponds to the first fully saturated edges from sources to sinks. An attribute table containing the flow information is linked to the <b>output</b> map. The table consists of two columns: <em>cat</em> and <em>flow</em> and stores the flow along each line. Negative flow mean
 s that "water" is flowing in the backward direction. <b>Cut</b> map contains the edges in the minimum cut. <br>
-A famous <a href="http://en.wikipedia.org/wiki/Max-flow_min-cut_theorem">result</a> says that the total amount of water flowing is equal to the minimum cut.
+The two sets of nodes are called <em>sources</em> and <em>sink</em> and 
+<em>v.net.flow</em> finds the maximimum flow from the former to the 
+latter ones. Edge capacities can be specified by <b>afcolumn</b> for 
+forward direction and <b>abcolumn</b> for backward direction. If the 
+latter parameter is ommited then the same capacity is used in either 
+direction. The sets are given by the respective <b>cats</b>, <b>layer</b> 
+and <b>where</b> parameters. Maximum flow corresponds to the maximum 
+amount of water possibly flowing through the network preserving the 
+capacity constraints and minimum cut to the set of edges of minimum total 
+capacity completely separating sources from sinks. The cut produced by 
+this module corresponds to the first fully saturated edges from sources 
+to sinks. An attribute table containing the flow information is linked 
+to the <b>output</b> map. The table consists of two columns: <em>cat</em> 
+and <em>flow</em> and stores the flow along each line. Negative flow 
+means that "water" is flowing in the backward direction. <b>Cut</b> map 
+contains the edges in the minimum cut. <br>
+A famous <a href="http://en.wikipedia.org/wiki/Max-flow_min-cut_theorem">result</a> 
+says that the total amount of water flowing is equal to the minimum cut.
  
 
 <h2>EXAMPLES</h2>
@@ -15,7 +32,8 @@
 </pre></div>
 <P>
 
-If all the capacties are one then the minimum cut corresponds to the minimum number of edges separating sources from sinks. 
+If all the capacties are one then the minimum cut corresponds to the 
+minimum number of edges separating sources from sinks. 
 <div class="code"><pre>
 v.net.flow input=network output=flow cut=cut afcolumn=ones source_cats=1-10 sink_cats=100-100
 </pre></div>

Modified: grass/trunk/vector/v.net.iso/v.net.iso.html
===================================================================
--- grass/trunk/vector/v.net.iso/v.net.iso.html	2011-06-03 16:17:17 UTC (rev 46553)
+++ grass/trunk/vector/v.net.iso/v.net.iso.html	2011-06-03 16:18:07 UTC (rev 46554)
@@ -1,10 +1,14 @@
 <h2>DESCRIPTION</h2>
 
-<em>v.net.iso</em> splits net to bands between cost isolines (direction from
-centre). Centre node must be opened (costs >= 0). Costs of centre node are 
-used in calculation. Supported are cost assignments for both arcs and nodes, 
-and also different in both directions of a vector line. For areas cost will 
-be calculated along boundary lines.
+<em>v.net.iso</em> splits a network into bands between cost isolines 
+(distance from centre). Centre nodes must be opened (costs >= 0). The 
+costs of centre nodes are used in the calculation. Supported are cost 
+assignments for both arcs and nodes, and also different in both 
+directions of a vector line. For areas, costs will be calculated along 
+boundary lines.
+<p>
+The input vector needs to be prepared with <em>v.net operation=connect</em> 
+in order to connect points representing centre nodes to the network.
 
 <h2>NOTES</h2>
 
@@ -17,9 +21,8 @@
 
 Subdivision of a network into areas:<br>
 
-The map must contain at least one center
-(point) on the vector network which can be patched into with
-<a HREF="v.patch.html">v.patch</a>.
+The map must contain at least one center (point) on the vector network 
+which can be patched into with <a HREF="v.net.html">v.net</a>.
 
 <div class="code"><pre>
 # Spearfish

Modified: grass/trunk/vector/v.net.path/v.net.path.html
===================================================================
--- grass/trunk/vector/v.net.path/v.net.path.html	2011-06-03 16:17:17 UTC (rev 46553)
+++ grass/trunk/vector/v.net.path/v.net.path.html	2011-06-03 16:18:07 UTC (rev 46554)
@@ -2,11 +2,11 @@
 
 <em>v.net.path</em> can find shortest path(s) on the vector network.
 Costs may be either line lengths, or attributes saved in a database 
-table. These attributes values are taken as costs of whole segments. If read 
+table. These attributes values are taken as costs of whole segments, not 
+as costs to traverse a lnegth unit (e.g. meter) of the segment. If read 
 from the table, arcs' costs may be different in both directions.
-Shortest paths are written to output vector map and attached attribute table.
+Shortest paths are written to output vector map with an attached attribute table.
 <P>
-
 Nodes can be piped into the program from file or from stdin. The
 syntax is as follows:
 <div class="code"><pre>
@@ -20,12 +20,14 @@
 </pre></div>
 
 <p>
-Points specified by category must be exactly on network nodes,
-while, when specifying coordinates, the next node to a given
-coordinate pair is used.
-</p>
+Points specified by category must be exactly on network nodes, and the 
+input vector map needs to be prepared with <em>v.net operation=connect</em>.
 <p>
-Attribute table will contain following attributes:
+When specifying coordinates, the next network node to a given coordinate 
+pair is used.
+
+<p>
+The attribute table will contain the following attributes:
 </p>
 <ul>
     <li>cat  - path unique category assigned by module</li>
@@ -43,7 +45,7 @@
     <li>tdist - the distance from the network to second point</li>
 </ul>
 
-<h2>NOTE</h2>
+<h2>NOTES</h2>
 
 If the columns 'afcol', 'abcol' and 'ncol' costs are not
 specified, the length of network segments is measured and 

Modified: grass/trunk/vector/v.net.salesman/v.net.salesman.html
===================================================================
--- grass/trunk/vector/v.net.salesman/v.net.salesman.html	2011-06-03 16:17:17 UTC (rev 46553)
+++ grass/trunk/vector/v.net.salesman/v.net.salesman.html	2011-06-03 16:18:07 UTC (rev 46554)
@@ -6,6 +6,9 @@
 values must indicate the costs to traverse a given line, e.g. if the speed
 limit is 100 km / h, the cost to traverse a 10 km long road segment is 
 calculated as length / speed = 10 km / (100 km/h) = 0.1 h.
+<p>
+Points specified by category must be exactly on network nodes, and the 
+input vector map needs to be prepared with <em>v.net operation=connect</em>.
 
 <h2>EXAMPLE</h2>
 

Modified: grass/trunk/vector/v.net.spanningtree/v.net.spanningtree.html
===================================================================
--- grass/trunk/vector/v.net.spanningtree/v.net.spanningtree.html	2011-06-03 16:17:17 UTC (rev 46553)
+++ grass/trunk/vector/v.net.spanningtree/v.net.spanningtree.html	2011-06-03 16:18:07 UTC (rev 46554)
@@ -1,9 +1,17 @@
 <h2>DESCRIPTION</h2>
 
-<em>v.net.spanningtree</em> find the minimum spanning tree in a network. 
+<em>v.net.spanningtree</em> finds the minimum spanning tree in a network. 
 
 <h2>NOTES</h2>
-Spanning tree is a minimum cost subnetwork connecting all nodes in a network. Or, if a network is disconnected then the module computes the minimum spanning tree for each (weakly) connected component. So, strictly speaking, module does not compute spanning tree but a spanning forest. As the name suggests spanning tree is a tree. That is, it contains no cycles and if a component has N nodes that the tree has N-1 edges and connected all nodes. <b>Accol</b> is used to specify the costs of the edges. The <b>output</b> consists of the edges in the spanning tree.  
+A spanning tree is a minimum cost subnetwork connecting all nodes in a 
+network. Or, if a network is disconnected then the module computes the 
+minimum spanning tree for each (weakly) connected component. So, strictly 
+speaking, <em>v.net.spanningtree</em> does not compute spanning tree but 
+a spanning forest. As the name suggests, a spanning tree is a tree. That 
+is, it contains no cycles and if a component has N nodes then the tree 
+has N-1 edges connecting all nodes. <b>Accol</b> is used to specify the 
+costs of the edges. The <b>output</b> consists of the edges in the 
+spanning tree.  
 
 <h2>EXAMPLES</h2>
 

Modified: grass/trunk/vector/v.net.steiner/v.net.steiner.html
===================================================================
--- grass/trunk/vector/v.net.steiner/v.net.steiner.html	2011-06-03 16:17:17 UTC (rev 46553)
+++ grass/trunk/vector/v.net.steiner/v.net.steiner.html	2011-06-03 16:18:07 UTC (rev 46554)
@@ -10,7 +10,11 @@
 which will minimize the amount of fibre optic cable needed to connect
 a series of satellite offices.
 
+<p>
+Points representing nodes must be exactly on network nodes, and the 
+input vector map needs to be prepared with <em>v.net operation=connect</em>.
 
+
 <h2>EXAMPLE</h2>
 
 Steiner tree for for 6 digitized nodes (Spearfish):

Modified: grass/trunk/vector/v.net.timetable/v.net.timetable.html
===================================================================
--- grass/trunk/vector/v.net.timetable/v.net.timetable.html	2011-06-03 16:17:17 UTC (rev 46553)
+++ grass/trunk/vector/v.net.timetable/v.net.timetable.html	2011-06-03 16:18:07 UTC (rev 46554)
@@ -1,12 +1,26 @@
 <h2>DESCRIPTION</h2>
 
-<em>v.net.timetable</em> finds the shortest path between two points using timetables. Module reads input, one query per line, from the standard input and writes output to the standard output as well as to the <b>output</b> map and to tables linked to layers 1 and 2. Each line of input must follow one of the following formats:
+<em>v.net.timetable</em> finds the shortest path between two points 
+using timetables. <em>v.net.timetable</em> reads input, one query per 
+line, from the standard input and writes output to the standard output 
+as well as to the <b>output</b> map and to tables linked to layers 1 and 
+2. Each line of input must follow one of the following formats:
 <pre>
 PATH_ID FROM_X FROM_Y TO_X TO_Y START_TIME MIN_CHANGE MAX_CHANGES WALK_CHANGE
 PATH_ID FROM_STOP TO_STOP START_TIME MIN_CHANGE MAX_CHANGES WALK_CHANGE
 </pre>
-where PATH_ID is the identificator of a query that is used in the output map to differentiate between queries. Search begins at START_TIME. MIN_CHANGE gives the minimum number of time (inclusively) for a change from one route to another. MAX_CHANGES denotes the maximum number of changes allowed or -1 if infinity. WALK_CHANGE is 1 or 0 depending whether walking from a stop to another stop is considered a change or not. Finally, the path is found from FROM_STOP to TO_STOP in latter case and from the stop closest to (FROM_X, FROM_Y) coordinates to the stop closest to (TO_X, TO_Y) coordinates in former case.<br>
-For each input query, module outputs a description of the shortest path to the standard output. For example, using the tables given below, for the following input:
+where PATH_ID is the identificator of a query that is used in the output 
+map to differentiate between queries. Search begins at START_TIME. 
+MIN_CHANGE gives the minimum number of time (inclusively) for a change 
+from one route to another. MAX_CHANGES denotes the maximum number of 
+changes allowed or -1 if infinity. WALK_CHANGE is 1 or 0 depending whether 
+walking from a stop to another stop is considered a change or not. Finally, 
+the path is found from FROM_STOP to TO_STOP in latter case and from the 
+stop closest to (FROM_X, FROM_Y) coordinates to the stop closest to 
+(TO_X, TO_Y) coordinates in former case.<br>
+For each input query, module outputs a description of the shortest path 
+to the standard output. For example, using the tables given below, for 
+the following input:
 <div class="code"><pre>
 47 130 300 0 1 5 0
 </pre></div>
@@ -15,26 +29,59 @@
 Route 15, from 130 leaving at 15 arriving to 250 at 22
 Walk from 250 leaving at 22 arriving to 300 at 24
 </pre></div>
-Moreover, the module writes the path to the <b>output</b> map and stores all the information necesasary to reconstruct the path to the tables. Table corresponding to stops/points is linked to layer 1 and looks, after the query, as follows:
+Moreover, the module writes the path to the <b>output</b> map and stores 
+all the information necesasary to reconstruct the path to the tables. 
+Table corresponding to stops/points is linked to layer 1 and looks, 
+after the query, as follows:
 <div class="code"><pre>
 cat|path_id|stop_id|index|arr_time|dep_time
 1|47|130|1|0|15
 2|47|250|2|22|22
 3|47|300|3|24|24
 </pre></div>  
-where CAT is the category of a point in the map, PATH_ID is the path identificator, STOP_ID is the identificator of the stop as used in the intput map, INDEX is the index of the stop on the path (i.e, index=1 is the first stop visited, ...) and ARR_TIME and DEP_TIME denote the arrival time and departure time respectively. Arrival time for the first stop on the path is always equal to START_TIME and departure time for the last stop is always equal to the arrival time.<br>
-Table linked to the second layer corresponds to subroutes taken between stops. The following table is obtainedd for the above query:
+where CAT is the category of a point in the map, PATH_ID is the path 
+identificator, STOP_ID is the identificator of the stop as used in the 
+input map, INDEX is the index of the stop on the path (i.e, index=1 is 
+the first stop visited, ...) and ARR_TIME and DEP_TIME denote the arrival 
+time and departure time respectively. Arrival time for the first stop on 
+the path is always equal to START_TIME and departure time for the last 
+stop is always equal to the arrival time.<br>
+Table linked to the second layer corresponds to subroutes taken between 
+stops. The following table is obtainedd for the above query:
 <div class="code"><pre>
 cat|path_id|from_id|to_id|route_id|index|from_time|to_time
 1|47|130|250|15|1|15|22
 2|47|250|300|-1|2|22|24
 </pre></div>
-where CAT is the category of lines of subroute between stops FROM_ID to TO_ID, ROUTE_ID is the identificator of the route taken or -1 if walking, INDEX and PATH_ID are as above and FROM_TIME and TO_TIME denote the times between which the route is taken.<br>
-The <b>output</b> map contains the points on the positions of used stops. If a subroute is taken between two stops then a line segment is added between two corresponding points. Finally, instead of straight line segment, the actual paths of routes can be given in <b>paths</b> layer. If this parameter is used then each line in the input map must contain identificators as category numbers of all routes passing through the line. The module then finds the path between two stops and writes this path instead. In case of walking from one stop to another, straight line between the stops is used.    
+where CAT is the category of lines of subroute between stops FROM_ID to 
+TO_ID, ROUTE_ID is the identificator of the route taken or -1 if walking, 
+INDEX and PATH_ID are as above and FROM_TIME and TO_TIME denote the times 
+between which the route is taken.<br>
+The <b>output</b> map contains the points on the positions of used stops. 
+If a subroute is taken between two stops then a line segment is added 
+between two corresponding points. Finally, instead of straight line 
+segment, the actual paths of routes can be given in <b>paths</b> layer. 
+If this parameter is used then each line in the input map must contain 
+identificators as category numbers of all routes passing through the line. 
+The module then finds the path between two stops and writes this path 
+instead. In case of walking from one stop to another, straight line 
+between the stops is used.    
 
 <h2>NOTES</h2>
 
-Timetables are stored in a table linked to the given <b>layer</b> of the <b>input</b> map. Timetable consists of routes and each route is just a sequence of stops with specified arrival times. If two sequences of stops differ only in times then they still correspond to two routes. For example, if there is a bus line that leaves every 20 minutes and follow exactly the same path every time then there still needs to be a separate route for every time. For each stop (given by the category number of the point) the table storing information about the routes must contain the list of all routes stopping at the stop(given by route identificators) together with arrival times. That is, the table must contain three columns: stop - which is the key of the table, <b>route_id</b> and <b>stop_time</b> where each triple corresponds to a route arriving to a stop and a certain time. For example, a valid table might look as follows:           
+Timetables are stored in a table linked to the given <b>layer</b> of the 
+<b>input</b> map. Timetable consists of routes and each route is just a 
+sequence of stops with specified arrival times. If two sequences of stops 
+differ only in times then they still correspond to two routes. For 
+example, if there is a bus line that leaves every 20 minutes and follow 
+exactly the same path every time then there still needs to be a separate 
+route for every time. For each stop (given by the category number of the 
+point) the table storing information about the routes must contain the 
+list of all routes stopping at the stop(given by route identificators) 
+together with arrival times. That is, the table must contain three 
+columns: stop - which is the key of the table, <b>route_id</b> and 
+<b>stop_time</b> where each triple corresponds to a route arriving to a 
+stop and a certain time. For example, a valid table might look as follows:           
 <div class="code"><pre>
 cat|route_id|stop_time
 100|5|0
@@ -50,22 +97,34 @@
 300|35|37
 100|35|50
 </pre></div>
-Note that <b>stop_time</b> is an integer and so you can use any units and offest to specify arrival times.<br>
-Also, walking connections between stops can be given by a table linked to <b>walking</b> layer of the <b>input</b> map. If this parameter is -1 then walking between stops is not allowed. The table must contain three columns: stop - which is the key of the table, <b>to_stop</b> and <b>length</b>. A record in the table says that it takes <b>lenght</b> units of time to walk from stop to <b>to_stop</b>. The following is a valid table:
+Note that <b>stop_time</b> is an integer and so you can use any units and 
+offest to specify arrival times.<br>
+Also, walking connections between stops can be given by a table linked to 
+<b>walking</b> layer of the <b>input</b> map. If this parameter is -1 
+then walking between stops is not allowed. The table must contain three 
+columns: stop - which is the key of the table, <b>to_stop</b> and 
+<b>length</b>. A record in the table says that it takes <b>length</b> 
+units of time to walk from stop to <b>to_stop</b>. The following is a 
+valid table:
 <div class="code"><pre>
 cat|length|to_stop
 250|2|300
 </pre></div>
-Beware that this only means that it is possible to walk from stop 250 to stop 300 but the other way round.
+Beware that this only means that it is possible to walk from stop 250 to 
+stop 300 but not the other way round.
 
 <h2>EXAMPLES</h2>
 
-To find a path from stop with identificator 130 to stop with category 300, starting at time 0, with one time unit for change, maximum of 5 changes and with walking not considered a change of route, we use the following command:
+To find a path from stop with identificator 130 to stop with category 300, 
+starting at time 0, with one time unit for change, maximum of 5 changes 
+and with walking not considered a change of route, we use the following 
+command:
 <div class="code"><pre>
 echo "47 130 300 0 1 5 0" | v.net.timetable input=buses output=path layer=5 walking=6 path=7
 </pre></div>
 
-If on the other, hand we know the coordinates of the places then the following command might be used   
+If on the other, hand we know the coordinates of the places then the 
+following command might be used   
 <div class="code"><pre>
 echo "47 10.31 54.31 90.21 28.21 0 1 5 0" | v.net.timetable input=buses output=path layer=5 walking=6 path=7
 </pre></div>



More information about the grass-commit mailing list