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

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?

--j

--
Jonathan A. Greenberg, PhD
Postdoctoral Scholar
Center for Spatial Technologies and Remote Sensing (CSTARS)
University of California, Davis
One Shields Avenue
The Barn, Room 250N
Davis, CA 95616
Cell: 415-794-5043
AIM: jgrn307, MSN: jgrn307@hotmail.com, Gchat: jgrn307

Not exactly what your asking, but you could pipe the output through awk to remove any fields that you don't want.

Cheers,

Mike

On 18-Jan-08, at 3:23 PM, Jonathan Greenberg wrote:

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?

--j

--
Jonathan A. Greenberg, PhD
Postdoctoral Scholar
Center for Spatial Technologies and Remote Sensing (CSTARS)
University of California, Davis
One Shields Avenue
The Barn, Room 250N
Davis, CA 95616
Cell: 415-794-5043
AIM: jgrn307, MSN: jgrn307@hotmail.com, Gchat: jgrn307

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Hi,

2008/1/18, Jonathan Greenberg <greenberg@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@gmail.com> * http://gama.fsv.cvut.cz/~landa *