09-05-2011, 18:56
Próbuję wczytać do QGIS'a widok z Postgis.
Definicja widoku wyglada nastepujaco:
SELECT droga.gid, droga.the_geom
FROM "Drogi" droga, "Znak" z
WHERE droga."Numer" = z."Numer_dr";
Przy próbie wczytania widoku do QGIS pojawia sie informacja:
"has no column suitable for use as a unique key.
Quantum GIS requires that the view has a column that can be used as a unique key. Such a column should be derived from a table column of type int4 and be a primary key, have a unique constraint on it, or be a PostgreSQL oid column"
Nie potrafie sobie z tym poradzic żeby wczytać tą warstwę.
Pozdrawiam
Definicja widoku wyglada nastepujaco:
SELECT droga.gid, droga.the_geom
FROM "Drogi" droga, "Znak" z
WHERE droga."Numer" = z."Numer_dr";
Przy próbie wczytania widoku do QGIS pojawia sie informacja:
"has no column suitable for use as a unique key.
Quantum GIS requires that the view has a column that can be used as a unique key. Such a column should be derived from a table column of type int4 and be a primary key, have a unique constraint on it, or be a PostgreSQL oid column"
Nie potrafie sobie z tym poradzic żeby wczytać tą warstwę.
Pozdrawiam