[GRASS-user] Dump Vector .dbf Tables?

   I have some shapefiles whose attribute tables have data I'd like to add to
the postgres database table. Looking at the GUI database menu I don't see a
module to dump the .dbf file contents to an ASCII file. Is there a way to do
this?

Rich

On Sat, Jan 28, 2012 at 8:00 PM, Rich Shepard <rshepard@appl-ecosys.com> wrote:

I have some shapefiles whose attribute tables have data I'd like to add to
the postgres database table. Looking at the GUI database menu I don't see a
module to dump the .dbf file contents to an ASCII file. Is there a way to do
this?

If they are still SHAPE files, it is unrelated to GRASS, hence ogr2ogr
will help.

If they are already in GRASS, then use

http://grass.osgeo.org/grass64/manuals/html64_user/db.out.ogr.html

Markus

On Sat, 28 Jan 2012, Markus Neteler wrote:

If they are still SHAPE files, it is unrelated to GRASS, hence ogr2ogr
will help.

Markus,

   I have them in both formats. I'll look at ogr2ogr.

Thanks,

Rich

--
Richard B. Shepard, Ph.D. | Integrity - Credibility - Innovation
Applied Ecosystem Services, Inc. | Helping Ensure Our Clients' Futures
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863

Rich wrote:

I have some shapefiles whose
attribute tables have data I'd like to add to
the postgres database table. Looking at the GUI
database menu I don't see a module to dump the .dbf
file contents to an ASCII file. Is there a way to
do this?

fwiw, as a generic command line tool `dbview` will
dump a dbf file to ASCII. `dbview -bt file.dbf`

Hamish