Nodes can be piped into the program from file or from stdin. The syntax is as follows:
id start_point_category end_point_categoryor
id start_point_x start_point_y end_point_x end_point_yPoints specified by category must be exactly on network nodes, while, when specifying coordinates, the next node to a given coordinate pair is used.
When using attributes, the length of segments is not used. To get more precise results, length should be taken indirectly into account by attributes. For example, to get the fastest path the columns 'max_speed' and 'length' are required. The correct fastest path can then be found by specifying afcol=length/max_speed (pg driver). If needed, the line length can be calculated and written to the attributes table by v.to.db.
echo "1 9 12" | v.net.path network afcol=forward abcol=backward out=mypath nlayer=1 d.vect mypath col=red
Last changed: $Date$