[GRASS-user] problem with v.out.ogr & pgsql

Giovanni Manghi giovanni.manghi at gmail.com
Tue Mar 30 19:21:23 EDT 2010

Hi all,
I'm trying to export a polygon from GRASS to postgis and the command I'm
using is like this

v.out.ogr -c input=polygon at mapset type=area dsn=PG:host=localhost
dbname=postgis user=users password=users format=PostgreSQL

but I always get

ERROR 1: AddGeometryColumn failed for layer
polygon at mapset, layer creation has failed.
ERROR: Unable to create OGR layer

The database is spatially enabled and the user has the right permissions
to write in it.

Didn't had much more success with v.out.ogr.pg.py has the error message
is the same.

Any hint?

thanks in advance

-- Giovanni --

More information about the grass-user mailing list