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

Markus Neteler neteler at osgeo.org
Wed Mar 31 02:31:46 EDT 2010


On Wed, Mar 31, 2010 at 1:21 AM, Giovanni Manghi
<giovanni.manghi at gmail.com> wrote:
> 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.

Does export to SHP file work (v.out.ogr) and upload to PostGIS
(shp2pgsql)? Really all permissions ok?

Markus


More information about the grass-user mailing list