v.lrs.where1grass
Finds line id and real km+offset for given points in vector map using linear reference system.
Usage
v.lrs.where
v.lrs.where --help
v.lrs.where lines=name
points=name
[llayer=string]
[player=string]
[rsdriver=string]
[rsdatabase=string]
rstable=string
[threshold=float]
[--help]
[--verbose]
[--quiet]
[--ui]
Keywords
vector, linear reference system, network
Overview
v.lrs.where identifies line id and real milepost+offset for points in vector map using linear reference system.
Examples
This example is written for the Spearfish dataset (it continues the example from v.lrs.create).
In this example, the ’route_lrs’ shall be queried for unknown positions (points, stored in the map newpoints) along the LRS:
# generate query pointsecho "590866.15|4926737.0590933|4927133" | v.in.ascii out=newpointsv.lrs.where lines=route_lrs points=newpoints rstable=route_lrspcat|lid|mpost|offsetpcat|lid|mpost|offset1|22|4.000000+212.0914612|22|6.000000+188.112093# verificationg.region vector=route_lrs n=n+100 s=s-100 -pd.erased.vect route_lrsd.vect busstops disp=attr attr=cat size=10 bg=white lcol=blue yref=bottomd.vect busstops icon=basic/circle fcol=blued.vect newpoints col=red# measure distance to previous bus stop:# use measuring tool in graphical user interface
Source code
Available at: v.lrs.where source code (history)
Accessed: Monday Feb 24 17:51:19 2025
Main index | Vector index | Topics index | Keywords index | Graphical index | Full index
© 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual
Releases
9 releases since Debian 5.0 (Lenny); the text changed 8 times.