code R item #510, was opened at 2007-10-12 15:40
Status: Open
Priority: 3
Submitted By: Maciej Sieczka (msieczka)
Assigned to: Nobody (None)
Summary: v.to.db option=length: please report line's 3d length
Issue status: None
GRASS component: vector
Operating system: all
Operating system version:
Initial Comment:
Currently v.to.db always assumes input vector is flat. Condider two vector lines:
Soon after I noticed v.to.db didn't report 3d length, I had
the same problem with v.distance (looking for a workaround),
which I noted down in the same ticket. Copying the note below:
Same request applies to v.distance. It apparently assumes
input points are flat too. Consider 2 3d points:
$ v.out.ascii start_3d
571600|5722275.5|1|1
$ v.out.ascii end_3d
571610|5722275.5|4|1
The distance between them is about 10.440307. Yet,
v.distance claims it's round 10:
v.distance should be fixed in CVS (not tested with 3d lines...)
Martin
2007/10/13, Maciej Sieczka <tutey@o2.pl>:
Martin Landa wrote:
> should be fixed in CVS.
After brief testing looks OK. Thanks much Martin!
Soon after I noticed v.to.db didn't report 3d length, I had
the same problem with v.distance (looking for a workaround),
which I noted down in the same ticket. Copying the note below:
Same request applies to v.distance. It apparently assumes
input points are flat too. Consider 2 3d points:
$ v.out.ascii start_3d
571600|5722275.5|1|1
$ v.out.ascii end_3d
571610|5722275.5|4|1
The distance between them is about 10.440307. Yet,
v.distance claims it's round 10:
Maciej:
> Same request applies to v.distance. It apparently assumes
> input points are flat too. Consider 2 3d points:
Martin wrote:
v.distance should be fixed in CVS (not tested with 3d lines...)
d.what.vect will give you a 3D distance to compare against for an easy test.
Hamish
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. http://farechase.yahoo.com/
Same request applies to v.distance. It apparently
assumes input points are flat too. Consider 2 3d
points:
Martin wrote:
v.distance should be fixed in CVS
Martin
You are too quick for me to catch on with testing :). I
confim now v.distance calculates the distance between 3D
points OK. BTW - v.distance suffers the same issue you have
just fixed in v.to.db, among the others, that a dummy column
is required in -p(rint) mode.
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.
Hamish
____________________________________________________________________________________
Catch up on fall's hot new shows on Yahoo! TV. Watch previews, get listings, and more! http://tv.yahoo.com/collections/3658