[GRASS-user] Snap a point to a line?

Alex Mandel tech_dev at wildintellect.com
Wed Aug 13 15:19:01 EDT 2008

Jonathan Greenberg wrote:
> I have a point file that I would like to have the points snapped to the 
> nearest line in a different vector file (preferably anywhere along the 
> length of the line, although the nearest line node would be ok) -- how 
> do I do this in GRASS?
> --j

v.patch can draw lines from the point to the existing network
v.net op="connect" can put the points on the line if you need them as 
nodes for network analysis.

Note I've found that I usually need to run a db.connect on the output of 
v.net for the attribute table to be created properly for network 
analysis. Not sure if this is a bug.

Alex Mandel

Geography Graduate Group
Information Center for the Environment (ICE)
University of California, Davis

More information about the grass-user mailing list