[gdal-dev] Status of Spatialite support

Even Rouault even.rouault at mines-paris.org
Fri May 22 06:13:28 EDT 2009


There is already some spatialite support in GDAL 1.6 that enables to read 
simple SpatiaLite geometries (point, linestring, polygon) without needing to 
link against libspatialite.

In GDAL 1.7dev, write support has also been added, as well as creating 
SpatiaLite compatible databases.
Yesterday, I've finally added the (optionnal) capability to link against 
libspatialite instead of libsqlite3, to benefit from the spatial enabled SQL 
functions that it provides (spatial queries + spatial indexing). So 
spatialite support should be mostly complete by now.

You should be able to take the ogr/ogrsf_frmts/sqlite directory from trunk in 
GDAL 1.6, but if you want to benefit from linking against libspatialite, 
you'll also have to patch configure and GDALmakeopt.in. See 

For the sake of simplicity, if you don't have to deal with sticking to GDAL 
1.6 ABI, I'd advise you to grab a snapshot from GDAL 1.7dev.

Best regards,


Le Friday 22 May 2009 11:13:46, vous avez écrit :
> Hi everybody
> I would like to test the spatialite format that should be supported by
> gdal starting with v1.7. Is it already working in current dev version (I
> would mainly need the read functionality with spatial index support in
> interaction with Mapserver)?
> Would I need to take the full export of current trunk or could I just
> use gdal 1.6 and add the sqlite directory from trunk?
> Thanks for any help
> Armin
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev

More information about the gdal-dev mailing list