[Gfoss] installazione postgis

Giuseppe Campagna giuseppecampagna a hotmail.com
Mer 10 Set 2008 18:02:02 CEST


ho installato postgres 8.3.3 e poi tramite l'application stack builder ho 
installato postgis 1.3.3
volevo importare uno shp in postgis usando prima il comando shp2pgsql per 
creare il file sql ( e questo funziona) e poi psql per importare la query 
dentro postgis, ma quì ho avuto degli errori. allora ho provato a creare una 
semplice tabella dentro postgis con il comando
CREATE TABLE parks (
  park_id    INTEGER,
  park_name  VARCHAR,
  park_date  DATE,
  park_type  VARCHAR
);

e poi quando faccio
SELECT AddGeometryColumn('parks', 'park_geom', 128, 'MULTIPOLYGON', 2 );
per generare la colonna geometrica mi dà il seguente errore:

ERROR:  la funzione addgeometrycolumn(unknown, unknown, integer, unknown, 
integer) non esiste
LINE 1: SELECT AddGeometryColumn('parks', 'park_geom', 128, 'MULTIPO...
               ^
HINT:  No function matches the given name and argument types. You might need 
to add explicit type casts.

********** Errore **********

ERROR: la funzione addgeometrycolumn(unknown, unknown, integer, unknown, 
integer) non esiste
Stato SQL: 42883
Suggerimento: No function matches the given name and argument types. You 
might need to add explicit type casts.
Carattere: 8


cosa può essere? ho provato a reinstallare postgis ma dice che già è 
installato ...
grazie
ciao
peppe 




Maggiori informazioni sulla lista Gfoss