[GRASS-dev] matrix-like output for v.distance

Hi all,

I modified v.distance to print matrix-like output (only for -a and one
given upload option). E.g.

$ v.distance from=p1 to=p1 upload=dist col=dist -a --q
|1|2|3
1|0.000000|5415.294148|6391.744296
2|5415.294148|0.000000|3888.896305
3|6391.744296|3888.896305|0.000000

but

v.distance from=p1 to=p1 upload=dist,cat col=dist,cat -a --q
3|0.000000|3
3|6391.744296|1
3|3888.896305|2
1|6391.744296|3
1|0.000000|1
1|5415.294148|2
2|3888.896305|3
2|5415.294148|1
2|0.000000|2

Martin

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