[GRASS-user] Help needed with exporting GRASS 6.4.0 vector files

All:

I have GRASS 6.4.0 vector maps (polygons) that I have digitized, which I need to export to ASCII with both attributes and (lat-long) boundary vertices. I need to subsequently reformat the data to a some non-standard ascii format. How do I do this?

I can use db.select to easily get the attribute data; I can also use v.out.ascii to do this. I can also use v.out.ascii with "format=standard" to get the lat-long pairs. Of course the problem is getting the attribute data reliably associated with the lat-long pair data. It's not a problem for me to write a script to reformat the ascii data into the format I need, I'm just wondering how to best get the data in *some* ascii format that I can reliably deal with.

Thanks,
Tom

--
Thomas E Adams
National Weather Service
Ohio River Forecast Center
1901 South State Route 134
Wilmington, OH 45177

EMAIL: thomas.adams@noaa.gov

VOICE: 937-383-0528
FAX: 937-383-0033

On Fri, Jul 24, 2009 at 5:51 PM, Thomas Adams<Thomas.Adams@noaa.gov> wrote:

All:

I have GRASS 6.4.0 vector maps (polygons) that I have digitized, which I
need to export to ASCII with both attributes and (lat-long) boundary
vertices. I need to subsequently reformat the data to a some non-standard
ascii format. How do I do this?

I can use db.select to easily get the attribute data; I can also use
v.out.ascii to do this. I can also use v.out.ascii with "format=standard" to
get the lat-long pairs. Of course the problem is getting the attribute data
reliably associated with the lat-long pair data. It's not a problem for me
to write a script to reformat the ascii data into the format I need, I'm
just wondering how to best get the data in *some* ascii format that I can
reliably deal with.

Tom,
how about using v.out.ogr instead and using one of the OGR supported
ASCII vector formats?
http://www.gdal.org/ogr/ogr_formats.html

Markus