[gdal-dev] Detect if SpatiaLite is available
Radim Blazek
radim.blazek at gmail.com
Wed Nov 7 03:47:27 PST 2012
On Wed, Nov 7, 2012 at 12:00 PM, Even Rouault
<even.rouault at mines-paris.org> wrote:
> Selon Radim Blazek <radim.blazek at gmail.com>:
>
>> Is there a way to detect in C if SQLite driver was compiled with
>> SpatiaLite and SPATIALITE=YES option may be used?
>
> OGR drivers currently lack a mechanism to expose metadata, so apart from trying
> to create a spatialite DB (you can create a in memory one, like /vsimem/foo.db,
> if you don't want to spoil the disk), I can't think of a better way to detect
> spatialite creation capabilities.
Thanks, I forgot about vsimem.
Radim
>>
>> Radim
>> _______________________________________________
>> 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