[Qgis-developer] Re: Load SQLite table into QGIS

romain romain.riviere.974 at gmail.com
Wed Oct 26 15:00:45 EDT 2011


Martin,

I've tried the following code:

vlayer = QgsVectorLayer('dbname="/data/gis/test.sqlite" table="mytable"',
'mytable', 'spatialite') 

but it doesn't work: vlayer.isValid() returns False ...

Peraphs this is because i'm still on QGIS 1.7 ???

Is there a way to import non spatial table in qgis 1.7 ?

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Load-SQLite-table-into-QGIS-tp6876536p6933871.html
Sent from the qgis-developer mailing list archive at Nabble.com.


More information about the Qgis-developer mailing list