[Qgis-developer] add postgis raster

Paolo Cavallini cavallini at faunalia.it
Tue Dec 14 02:58:43 EST 2010


Il 13/12/2010 20:03, Maurício de Paulo ha scritto:
> Are you testing on ubuntu/Debian? I had to install pyqt4's psql driver
> by hand. I don' t remeber exactly the driver's name. I think it's
> something like libqt4-psql.

Yes, I'm on Debian.
In fact:
Warning: QSqlDatabase: QPSQL driver not loaded
Installing libqt4-sql-psql does the trick.
However, I have the server on another machine, and the pg versions do not match, so I
get Warning: This version of PostgreSQL is not supported and may not work.
And in fact it does not work well: the raster is loaded, but I only get NULLs and 0
instead of true values. Unsure, however, if the raster was loaded correctly in the db.

On the machine where I have the db, I get instead (but this coudl be to mismatching
pg versions, as I have both 8.4 and 9.0 istalled):
Error:
	GDAL Error 4: `PG: dbname=nove host=localhost user=nove password=***** port=5433
schema=public table=dtm_rt' does not exist in the file system,
and is not recognised as a supported dataset name.

During startup - There were 16 warnings (use warnings() to see them)
Segmentation fault

> I've used pyqt4 for table listing. I don't know what's going to be QGIS'
> default pg library, but it's easily replaced.

I think it would be good not to add further cryptodependencies.

> Integration with PostgisManager? It can be done. But I was thinking
> about moving the plugin to the Layer menu (as I did with RGB Composition
> Plugin). IMHO plugins that load data should be with the other data
> loading interfaces. What do you think would be best for the users?

I think the best would be to integrate with both "Add PostGIS vector" for loading and
with PostGIS manager for previewing and loading.

All the best, and thanks a lot!
-- 
Paolo Cavallini: http://www.faunalia.it/pc


More information about the Qgis-developer mailing list