[Qgis-developer] Load SQLite table into QGIS
Martin Dobias
wonder.sk at gmail.com
Thu Oct 13 16:06:23 EDT 2011
On Mon, Oct 10, 2011 at 8:17 AM, romain riviere
<romain.riviere.974 at gmail.com> wrote:
> Hi,
> I know how to Load a spatiaLite spatial table into QGIS,
> but I can't find how to load a non spatial table (ie simple SQLite table).
> I've read the pyqgis cookbook, and QGs API, but didn't find any answer.
This should work:
vlayer = QgsVectorLayer('dbname="/data/gis/test.sqlite"
table="mytable"', 'mytable', 'spatialite')
Martin
More information about the Qgis-developer
mailing list