[GRASS-user] db.connect/db.in.ogr Questions

Rich Shepard rshepard at appl-ecosys.com
Thu Mar 10 14:02:15 EST 2011


   My postgres tables are in /usr/local/pgsql/data/. My GRASS database is in
~/grassdata/. Since the water well log table did not want to cleanly import
with v.in.ascii using the default dbf driver/database, I'll use the postgres
table.

   db.connect wants a driver name (pg), and the database name (Default:
$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/). The database name is 'nevada' and
the table I want to use is 'water_well'. What syntax should I use for
db.connect?

   db.in.ogr has an example for importing a postgres table. What I don't see
is how I tell GRASS that it's the last two columns, utm_easting and
utm_northing, that should be used as the geographic points?

Rich


More information about the grass-user mailing list