[GRASS-user] v.out.ascii -- surpressing vector IDs?

Martin Landa landa.martin at gmail.com
Fri Jan 18 17:35:18 EST 2008


Hi,

2008/1/18, Jonathan Greenberg <greenberg at ucdavis.edu>:

> I'm trying to export a 3d vector to an ascii file that just contains x y
> z using v.out.ascii, but the output also puts in the numeric vector id
> which is causing havoc with other importers.  Is there any way to
> disable this?

not sure if I understand your question,

$ v.out.ascii x
1619923.0297213|4836235.79480289|0.01571819|1
1619927.57223432|4836235.09835698|8.05628783|2
1619910.45256599|4836241.22590928|6.82026114|3

To eliminate category number from output (4th column), you can use e.g. awk

$ v.out.ascii x | awk -F'|' '{OFS="|"; print $1,$2,$3}'
1619923.0297213|4836235.79480289|0.01571819
1619927.57223432|4836235.09835698|8.05628783
1619910.45256599|4836241.22590928|6.82026114

Martin

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


More information about the grass-user mailing list