[GRASS-user] db.out.ogr: Syntax Correction [UPDATED]

Rich Shepard rshepard at appl-ecosys.com
Tue Mar 15 19:30:05 EDT 2011

On Wed, 16 Mar 2011, Richard Chirgwin wrote:

> db.copy *within* a mapset runs into a problem: a mapset only holds one set
> of database connection parameters. So it's presenting your PG credentials
> to the DBF driver, and failing.


   Ah so. Too bad that's not on the manual page because the command line
includes both from_driver and to_driver specifiers.

> Use two mapsets with separate database connections, eg:
> Location/Mapset/Nevada_1 - original map with dbf connection (no login 
> required)
> Location/Mapset/Nevada_2 - destination mapset with pg connection and login 
> set
> With Grass-GIS launched in the destination mapset:
> g.copy vect=map at Nevada_2,map

   I'll play with this tomorrow. I suppose that I need to set the driver for
each mapset individually. Ultimately, I want all the attribute tables in
postgres and all these statewide data to be in the PERMANENT mapset.



More information about the grass-user mailing list