Hi,

On 13/08/08 21:19, Alex Mandel 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?

2008/8/13 Moritz Lennert <[EMAIL PROTECTED]>:
> v.edit with the bgmap= parameter.

for v.edit trick you need >= r32749

where I enabled also snapping of points in veditlib.

input maps: points,lines

1) create empty output map

v.edit map=points_snapped tool=create

2) add points and snap them based on bgmap (choose appropriate threshold value)

v.out.ascii points for=standard | v.edit map=points_snapped tool=add
bgmap=lines thresh=-1,500,-1 id=1-99999 snap=node

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to