[GRASS-user] problem with v.edit tool=merge

Martin Landa landa.martin at gmail.com
Wed Mar 28 03:04:10 EDT 2007


Hi,

you can use v.out.ascii, e.g.

v.out.ascii lines for=standard | grep -v ':'
L  2 1
 593032.40082212 4921689.97052779
 595110.2466359 4921611.5612518
 1     1
L  2 1
 595110.2466359 4921611.5612518
 596809.11428239 4922068.94869508
 1     2
L  2 1
 596809.11428239 4922068.94869508
 599357.41575212 4921206.44665917
 1     3

g.copy vect=lines,lines1

v.edit lines1 tool=merge cats=1,2
[2] of [3] features selected
Editing: [2] lines merged

Martin

2007/3/27, Jarek Jasiewicz <jarekj at amu.edu.pl>:
> Martin Landa napisał(a):
> > Hi,
> >
> > could be possible to reproduce this vector data?
> >
> > Martin
> >
> > 2007/3/27, Jaros�aw Jasiewicz <jarekj at amu.edu.pl>:
> >> Hi
> >> I tired:
> >>
> >> v.edit map=linie layer=1 type=line tool=merge thresh=0 cats=14,15
> >>
> >> and I recived:
> >>
> >> GRASS_INFO_MESSAGE(6432,1): [2] of [17] features selected
> >> GRASS_INFO_MESSAGE(6432,2): [0] features merged
> >> GRASS_INFO_MESSAGE(6432,3): v.edit complete.
> >>
> >>
> >> I also tried with no treshold parameter. Result is the same
> >>
> >> but If I use tool=snap all is ok,lines are snapped (but I ecxpect merge,
> >> not only snap)
> >>
> >> do I something wrong?
> >>
> >> I add it is very simple vector file with few lines, crated to experiment
> >> with that new fascinating tool
> >>
> >> Jarek
> >>
> >> _______________________________________________
> >> grassuser mailing list
> >> grassuser at grass.itc.it
> >> http://grass.itc.it/mailman/listinfo/grassuser
> >>
> >
> >
> thanks for ansver
>
> but how to reproduce???
>
> I just simply draw (v.digit) few lines (with categories but without
> table) in new vector.
> Lines look like ---1--  ---2----  ---3---, every line has own cat
>
> now I try:
> v.edit map=linie layer=1 type=line tool=merge thresh=0 cats=1,2
>
> GRASS_INFO_MESSAGE(6432,1): [2] of [3] features selected
> GRASS_INFO_MESSAGE(6432,2): [0] features merged
> GRASS_INFO_MESSAGE(6432,3): v.edit complete.
>
> and green bar stops at half...
>
>
> if I try similar tool:
> v.edit map=linie layer=1 type=line tool=snap thresh=0 cats=1,2
>
> all goes OK i.e lines are snapped
> I tried it on few files and few machines everywhere it gos the same
>
> I add, I need that tool. I prepared useful scrpit (for now it works with
> snap option only) which (will be) based
> on that tool. So I need to understand If there is problem with tool and
> I shall look for another solution (or wait) or I do something wrong
>
> regards
>
> Jarek
>
>
>
>


-- 
Martin Landa <landa.martin at gmail.com> * http://gama.fsv.cvut.cz/~landa *




More information about the grass-user mailing list