other versions
- jessie 6.4.4-1
- stretch 7.2.0-2
- testing 7.6.0-1
- unstable 7.6.0-1
- experimental 7.6.1-1~exp1
v.net.distance(1grass) | Grass User's Manual | v.net.distance(1grass) |
NAME¶
v.net.distance - Computes shortest distance via the network between the given sets of features.KEYWORDS¶
vector, network, shortest pathSYNOPSIS¶
v.net.distanceFlags:¶
- -g
-
- --overwrite
-
- --verbose
-
- --quiet
-
Parameters:¶
- input=name
-
- output=name
-
- from_layer=integer
-
- from_cats=range
-
- from_where=sql_query
-
- to_layer=integer
-
- to_cats=range
-
- to_where=sql_query
-
- to_type=string[,string,...]
-
- afcolumn=name
-
- abcolumn=name
-
DESCRIPTION¶
v.net.distance finds the nearest element in set to for every point in set from.NOTES¶
These two sets are given by the respective layer, where and cats parameters. The type of to features is specified by to_type parameter. All from features are points. A table is linked to output map containing various information about the relation. More specifically, the table has three columns: cat, tcat and dist storing category of each from feature, category of the nearest to feature and the distance between them respectively. Furthemore, output map contains the shorest path between each cat, tcat 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 from feature. And so the shortest paths can be easily obtained by querying lines with corresponding category number.EXAMPLES¶
Find shortest path and distance from every school to the nearest hospital and show path from school number one.to_where="type=hospital" afcolumn=SHAPE_LEN
SEE ALSO¶
v.net.path, v.net.allpairs, v.net.distance, v.net.allocAUTHORS¶
Daniel Bundala, Google Summer of Code 2009, StudentGRASS 6.4.4 |