[Qgis-developer] Creating a spatialite layer in a python plugin

Daniel danielvaz at gmail.com
Fri Jul 12 12:51:40 PDT 2013


Is it possible to create a spatialite layer using python bindings?

I compiled qgis version 1.8 from source on Ubuntu 12.04

GDAL 1.9.2
Spatialite 3.0.0~beta20110817-3

I enable PYSPATIALITE from ccmake menu.

>From plugin if i call the method:

QgsVectorFileWriter.supportedFiltersAndFormats()

I have the following output, where there is not SpatiaLite format available.

GeoJSON [OGR] (*.geojson *.GEOJSON)
GeoRSS [OGR] (*.xml *.XML)
Generic Mapping Tools [GMT] [OGR] (*.gmt *.GMT)
SQLite [OGR] (*.sqlite *.SQLITE)
ESRI Shapefile [OGR] (*.shp *.SHP)
INTERLIS 1 [OGR] (*.itf *.xml *.ili *.ITF *.XML *.ILI)
Geography Markup Language [GML] [OGR] (*.gml *.GML)
Geoconcept [OGR] (*.gxt *.txt *.GXT *.TXT)
AutoCAD DXF [OGR] (*.dxf *.DXF)
INTERLIS 2 [OGR] (*.itf *.xml *.ili *.ITF *.XML *.ILI)
Microstation DGN [OGR] (*.dgn *.DGN)
Comma Separated Value [OGR] (*.csv *.CSV)
Atlas BNA [OGR] (*.bna *.BNA)
GPS eXchange Format [GPX] [OGR] (*.gpx *.GPX)
S-57 Base file [OGR] (*.000 *.000)
Keyhole Markup Language [KML] [OGR] (*.kml *.KML)
Mapinfo File [OGR] (*.mif *.tab *.MIF *.TAB)


What I am missing?

Thanks in advance.

-- 
Daniel Vaz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20130712/eff4927a/attachment.html>


More information about the Qgis-developer mailing list