[GRASS-dev] [grass-code R][510] v.to.db option=length: please report line's 3d length

Hamish hamish_nospam at yahoo.com
Sat Oct 13 22:50:39 EDT 2007

> > d.what.vect will give you a 3D distance to compare
> > against for an easy test.
> Sorry I'm dense, but I don't get it how d.what.vect can
> measure 3D distance. Can you explain?

Length is one it the outputs... just this:

echo "L 2          
571600 5722275.5 0
571610 5722275.5 20" | v.in.ascii -zn form=standard out=l3d

echo "L 2          
571600 5722276.5
571610 5722276.5" | v.in.ascii -n form=standard out=l2d

g.region v=l3d
d.vect l3d
d.vect l2d color=blue

d.what.vect -x --q

571604.16666667(E) 5722276.5(N)
l3d in user1  Nothing Found.
l2d in user1  Line
length 10.000000

571603.95833333(E) 5722275.45833333(N)
l3d in user1  Line
length 22.360680
Line height min: 0.000000 max: 20.000000
l2d in user1  Nothing Found.


Catch up on fall's hot new shows on Yahoo! TV. Watch previews, get listings, and more!

More information about the grass-dev mailing list