[Gfoss] Alcuni problemi con postgres

Salve a tutti,
aggiornando la mia versione di QGIS da 1.90.19 (1816274) a 1.90.41 (3e91332)
mi sono accorto che non posso più leggere correttamente tabelle con geometrie
(SRID 26591) in postgres (versione 8.4 / postgis 1.4 ( (che continuano comunque
ad essere caricabili con la versione 1.7.3). In breve:
- posso leggere e caricare correttamente le tabelle senza geometria
- posso vedere tutte le tabelle con geometria presenti nel database, ma solo
alcune sono caricabili, le altre mi restituiscono questo errore nel log se
tento di caricarle:

GENERAL LOG:
Unable to get feature type or srid for the_geom of "risorse_idriche"."
DBRIP_conc_idro_p"

dbname='ambiente' host=localhost port=5432 user='postgres' password='cb1972'
sslmode=disable srid=26591 type=Point table="risorse_idriche"."
DBRIP_conc_idro_p" (the_geom) sql= is an invalid layer - not loaded

POSTGRES LOG
Errornous query: SELECT upper(type),srid FROM geography_columns WHERE
f_table_name='DBRIP_conc_idro_p' AND f_geography_column='the_geom' AND
f_table_schema='risorse_idriche' returned 7 [ERROR: relation
"geography_columns" does not exist
LINE 1: SELECT upper(type),srid FROM geography_columns WHERE f_table...
                                     ^
]

Failed to get geometry details for PostGIS column DBRIP_conc_idro_p.the_geom.

invalid PostgreSQL layer

- altri layer (contenenti geometrie puntuali) posso caricarli, vengono
rappresentati correttamente, ma in prima posizione nella tabella compare un
campo senza nome con contenuto NULL per tutti i record, posso selezionare i
punti ma l'identificazione non restuisce alcun risultato e mi compaiono i
seguenti messaggi di log:
GENERAL:
Unable to get feature type or srid for the_geom of "risorse_idriche"."
DBRIP_conc_idro_p"

POSTGRES
Query: DECLARE qgisf0 BINARY CURSOR FOR SELECT asbinary(force_2d
("the_geom"),'NDR'),"SOND_ID",""::text,"NOME"::text,"COMMITTENZA"::text,"DATA"::
text,"TOPONIMO"::text,"TIPO"::text,"Qslm"::text,"Prof"::text,"falda"::text,"
DOClnk"::text,"gid"::text,"NOTE"::text,"incl"::text FROM "prospezioni"."
db_geotec_point" WHERE "the_geom" && setsrid('BOX3D(1684316.4683634482789785
4805094.7272497033700347, 1684996.4143379742745310 4805774.6732242302969098)'::
box3d,26591) AND intersects("the_geom",setsrid('BOX3D(1684316.4683634482789785
4805094.7272497033700347, 1684996.4143379742745310 4805774.6732242302969098)'::
box3d,26591)) returned 7 [ERROR: zero-length delimited identifier at or near
""""
LINE 1: ...CT asbinary(force_2d("the_geom"),'NDR'),"SOND_ID",""::text,"...
                                                             ^
]

1 cursor states lost.
SQL: DECLARE qgisf0 BINARY CURSOR FOR SELECT asbinary(force_2d
("the_geom"),'NDR'),"SOND_ID",""::text,"NOME"::text,"COMMITTENZA"::text,"DATA"::
text,"TOPONIMO"::text,"TIPO"::text,"Qslm"::text,"Prof"::text,"falda"::text,"
DOClnk"::text,"gid"::text,"NOTE"::text,"incl"::text FROM "prospezioni"."
db_geotec_point" WHERE "the_geom" && setsrid('BOX3D(1684316.4683634482789785
4805094.7272497033700347, 1684996.4143379742745310 4805774.6732242302969098)'::
box3d,26591) AND intersects("the_geom",setsrid('BOX3D(1684316.4683634482789785
4805094.7272497033700347, 1684996.4143379742745310 4805774.6732242302969098)'::
box3d,26591))
Result: 7 (ERROR: zero-length delimited identifier at or near """"
LINE 1: ...CT asbinary(force_2d("the_geom"),'NDR'),"SOND_ID",""::text,"...
                                                             ^
)

nextFeature() without select()

Qualcuno può aiutarmi a capire se è un problema relativo a postgres / postgis
(versione), alle tabelle (magari create male dato che non sono espertissimo)
oppure se il problema è legato al fatto che sto usando una versione in
sviluppo?

Grazie a tutti, saluti

Salve,

2012/1/21 a.ciali@libero.it <a.ciali@libero.it>:

aggiornando la mia versione di QGIS da 1.90.19 (1816274) a 1.90.41 (3e91332)
mi sono accorto che non posso più leggere correttamente tabelle con geometrie
(SRID 26591) in postgres

direi che certamente dipende da un problema in QGis:
nelle ultime settimane il provider postgres ha subito parecchi
cambiamenti.

Io ti consiglio di provare con l'ultimissima revisione di QGis.
Se fosse gia' cosi' o il problema continua a manifestarsi allora
apri un ticket sul tracker di Qgis, sicuramente verra' corretto in
pochi giorni.

Saluti.

POSTGRES LOG
Errornous query: SELECT upper(type),srid FROM geography_columns WHERE
f_table_name='DBRIP_conc_idro_p' AND f_geography_column='the_geom' AND
f_table_schema='risorse_idriche' returned 7 [ERROR: relation
"geography_columns" does not exist
LINE 1: SELECT upper(type),srid FROM geography_columns WHERE f_table...
^
]

Failed to get geometry details for PostGIS column DBRIP_conc_idro_p.the_geom.

invalid PostgreSQL layer

- altri layer (contenenti geometrie puntuali) posso caricarli, vengono
rappresentati correttamente, ma in prima posizione nella tabella compare un
campo senza nome con contenuto NULL per tutti i record, posso selezionare i
punti ma l'identificazione non restuisce alcun risultato e mi compaiono i
seguenti messaggi di log:
POSTGRES
1 cursor states lost.
SQL: DECLARE qgisf0 BINARY CURSOR FOR SELECT asbinary(force_2d
("the_geom"),'NDR'),"SOND_ID",""::text,"NOME"::text,"COMMITTENZA"::text,"DATA"::
text,"TOPONIMO"::text,"TIPO"::text,"Qslm"::text,"Prof"::text,"falda"::text,"
DOClnk"::text,"gid"::text,"NOTE"::text,"incl"::text FROM "prospezioni"."
db_geotec_point" WHERE "the_geom" && setsrid('BOX3D(1684316.4683634482789785
4805094.7272497033700347, 1684996.4143379742745310 4805774.6732242302969098)'::
box3d,26591) AND intersects("the_geom",setsrid('BOX3D(1684316.4683634482789785
4805094.7272497033700347, 1684996.4143379742745310 4805774.6732242302969098)'::
box3d,26591))
Result: 7 (ERROR: zero-length delimited identifier at or near """"
LINE 1: ...CT asbinary(force_2d("the_geom"),'NDR'),"SOND_ID",""::text,"...
^
)

nextFeature() without select()

Qualcuno può aiutarmi a capire se è un problema relativo a postgres / postgis
(versione), alle tabelle (magari create male dato che non sono espertissimo)
oppure se il problema è legato al fatto che sto usando una versione in
sviluppo?

Grazie a tutti, saluti
_______________________________________________
Iscriviti all'associazione GFOSS.it: http://www.gfoss.it/drupal/iscrizione
Gfoss@lists.gfoss.it
http://lists.gfoss.it/cgi-bin/mailman/listinfo/gfoss
Questa e' una lista di discussione pubblica aperta a tutti.
Non inviate messaggi commerciali.
I messaggi di questa lista non rispecchiano necessariamente
le posizioni dell'Associazione GFOSS.it.
569 iscritti al 4.1.2012

--
Giuseppe Sucameli