Are you sure about that, since I installed Spatialite libs on my system,
all I do is:
from pysqlite2 import dbapi2 as sqlite3
class spatialtest():
'''Spatial database'''
def __init__(self, db):
#load an existing database
#pysqlite connection
self.con = sqlite3.connect(db)
# Load the spatialite extension of sqlite
self.con.enable_load_extension(True)
self.con.execute("select load_extension('libspatialite.so')")
self.con.enable_load_extension(False)
def close(self):
'''Close database connection'''
self.con.close()
Standard python 2.5
Alex
Alex
QGIS 1.1 can read Spatialite tables directly, and have the same
programming interface as other vector layers including Postgis.
In fact spatialite compiliation is included in the new version, so if
you're only working within QGIS & Python just using the new version
should do it for you.
Alex
FYI 1.1 should be available today.
QGIS 1.1 can read Spatialite tables directly, and have the sameprogramming interface as other vector layers including Postgis.
In fact spatialite compiliation is included in the new version, so if
you're only working within QGIS & Python just using the new version
should do it for you.
Ah, for this question it's probably a good idea to ask on the
qgis-developer <qgis-de...@lists.osgeo.org>, which I've copied on
this email.
Alex