[GRASS-user] snap point to line/break line at given points

Moritz Lennert mlennert at club.worldonline.be
Mon Apr 18 10:39:25 EDT 2011


On 18/04/11 12:55, Micha Silver wrote:
> On 04/18/2011 12:55 PM, Moritz Lennert wrote:

>> v.distance should be able to do the labelling for you.
>>
>
> I tried this part, but couldn't get it to work :-( . I used v.what.vect
> (and v.distance directly) to get the cat values from the new points into
> the river vector line segments, but each time it gave me:
>
> ~ > v.distance from=river to=new_pts upload=cat col=pt_cat to_col=cat
> 100%
> 100%
> 1 categories exist in the table
> 0 records updated
> v.distance complete.
>
> But the new_pts vector has 6 cats:
> ~ > v.category new_pts opt=print
> 1
> 2
> 3
> 4
> 5
> 6
>
> and the river vector has 7 segments:

Yes, but how many cat values. probably all segments have the same cat 
value. You might have to use v.category to create separate cat values 
for each line.

Moritz


More information about the grass-user mailing list