[Qgis-developer] Help: how create a spatialite db and layers

Giuseppe Sucameli brush.tyler at gmail.com
Wed Jun 16 12:53:30 EDT 2010


Hi guys,

I'm working on rt_postgres_extractor python plugin.
Its aims is to extract some geometries by intersecting a postgis table with
one or more polygons.
Users can choose to export the output in shapefile, kml, spatialite.

I use QgsVectorFileWriter and the postgres provider (with custom query)
to export the output layers to either shapefiles or kml.

Instead, if I want to create a spatialite db and add the output layers to it

I could use the OGR/GDAL lib (the spatialite support is present from ogr
1.7) .

Do you know if there are other ways to do this without using ogr2ogr?

Thanks!

-- 
Giuseppe Sucameli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20100616/b5d658a6/attachment.html


More information about the Qgis-developer mailing list