[GRASS-user] Re: v.out.ogr: Convert Attribute Database?
Rich Shepard
rshepard at appl-ecosys.com
Thu Mar 22 16:57:12 EDT 2012
On Thu, 22 Mar 2012, Helmut Kudrnovsky wrote:
> v.out.ogr input=polygons type=area \
> dsn="PG:host=localhost dbname=postgis user=postgres" \
> olayer=polymap format=PostgreSQL
> missing format definition?
Helmut,
Er, looks like I did forget the format definition.
> what I would do (a very lazy way):
>
> - create a new mapset
> - using db.connect (Prints/sets general DB connection for current mapset and
> exits.) to define postgres as the mapset database backend
> - g.copy surface_h2o to the new mapset and the attribute table should be
> automagically in the postgres
I'll give this a try. I can then delete the original map and copy the new
one back to the project mapset.
Will let everyone know how this works.
Thanks,
Rich
More information about the grass-user
mailing list