[Gfoss] POSTGIS+QGIS

Salvator*eL*arosa s_larosa at libero.it
Mon Nov 27 21:44:52 CET 2006


Salve a tutti, ed in particolare a Faunalia(grandi!)

stavo giocando un po con PostGIS e QGIS e ad un tratto mentre cerco di
importare il mio nuovo layer in qgis mi appare:

The table has no column suitable for use as a key.

Qgis requires that the table either has a column of type
int4 with a unique constraint on it (which includes the
primary key) or has a PostgreSQL oid column.

public.test1 (the_geom) sql= è un layer non valido e non può essere
caricato.

Praticamente ho creato un nouvo strato dall'intersezione delle strade con un
comune:

create table test1 as
select intersection(r.the_geom, l.the_geom) as geometry,
r.numero, r.tipo, r.classe
from stradegbe as r, limiti_amm as l
where r.the_geom && l.the_geom
and intersects(r.the_geom, l.the_geom)
and l.comune ='COSENZA';

Dopo aver creato con successo la tabella test1, non mi permette di
visualizzare il layer per i motivi sopradetti.

Qualcuno di voi ha mai riscontrato questo problema?
Grazie

-- 
View this message in context: http://www.nabble.com/POSTGIS%2BQGIS-tf2714319.html#a7567677
Sent from the Gfoss mailing list archive at Nabble.com.




More information about the Gfoss mailing list