[Gfoss] passaggio di dati vettoriali da grass a postgis/postgresql

ciccpaol a libero.it ciccpaol a libero.it
Gio 15 Apr 2010 14:35:01 CEST


Salve,

sto cercando di passare dei dati vettoriali da grass a postgis; per fare 
questo, da terminale ho digitato:

toro a toro-laptop:~$ su postgres
Password: 
postgres a toro-laptop:/home/toro$ psql
psql (8.4.2)
Type "help" for help.

postgres=# createdb spearpg -O grass -h localhost -U grass
postgres-# createlang plpgsql spearpg -U grass
postgres-# psql spearpg -U grass -f /usr/share/postgresql/8.4/contrib/postgis.
sql
postgres-# psql spearpg -U grass -f /usr/share/postgresql/8.
4/contrib/spatial_ref_sys.slq
postgres-# createdb spearpg -O grass -h localhost -U grass

e fin qui semba tutto regolare...

una volta entrato in grass, mapset=spearfish, location=user1  faccio

g.copy vect=fields,fields2    per passare il file fields2 dal mapset permanent 
a quello user1

e successivamente cerco di importare il file dentro postgis/postgresql

v.out.ogr -c input=fields2 type=area 'dsn=PG:host=localhost dbname=spearpg 
user=grass password=grass' olayer=fields2postgis layer=1 format=PostgreSQL

ERROR 1: ERROR:  permission denied for relation geometry_columns

ERROR 1: PostgreSQL driver doesn't currently support database creation.
Please create database with the `createdb' command.
ERROR: Unable to open OGR data source 'PG:host=localhost dbname=spearpg
       user=grass password=grass'


tutta questa sequenza è ripresa dal tutorial  http://www.ing.unitn.
it/~grass/docs/tutorial_62/htdocs/esercitazione/PostgreSQL/node2.html 
ma non riesco proprio a capire come fare per poter andare avanti.

potreste aiutarmi?

grazie







Maggiori informazioni sulla lista Gfoss