[Qgis-developer] Accessing spatialite functions with qgis-internal spatialite

Gary Sherman gsherman at geoapt.com
Sat Apr 3 02:52:09 EDT 2010


On Apr 2, 2010, at 14:53, Jürgen E. Fischer <jef at norbit.de> wrote:

> Hi Gary,
>
> On Fri, 02. Apr 2010 at 12:05:52 -0800, Gary Sherman wrote:
>> The spatialite functions (e..g AddGeometryColumn) are reported as
>> being non-existent when trying to create the new layer from C++.
>
>> Any thoughts on how to get access to the spatial functions using the
>> qgis-internal spatialite?
>
> I quick'n'dirty added spatialite support to the new vector layer  
> function.  [1]
> is the patch. [2] is a clean spatialite template that should be put  
> into
> the resources directory in our tree.
>
> I tried both the system's and internal spatialite and didn't run  
> into your
> problem.  What did we do different?
>
My implementation is independent of the spatialite provider. Calling  
spatialite_init did the trick.

Thanks,
-Gary
{{Sent from the wandering iPhone}}
>
> Jürgen
>
> [1] http://buten.norbit.de/~jef/spatialite.diff
> [1] http://buten.norbit.de/~jef/spatialite.db
>
> -- 
> Jürgen E. Fischer         norBIT GmbH               Tel. +49-4931-91 
> 8175-20
> Dipl.-Inf. (FH)           Rheinstraße 13            Fax. +49-4931-91 
> 8175-50
> Software Engineer         D-26506 Norden               http://www.norbit.de
>
> -- 
> norBIT Gesellschaft fuer Unternehmensberatung und  
> Informationssysteme mbH
> Rheinstrasse 13, 26506 Norden
> GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer


More information about the Qgis-developer mailing list