本文介绍了如何为iOS编译spatialite的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的,这是我的第一个主题。我是iOS平台上的新手,我正在尝试使用sqlite3进行空间扩展,但我无法做到这一点。这让我发疯了。我不知道我该怎么做,从哪里开始。有人可以给我建议吗?



谢谢。

解决方案

我'在http:// ;-)
上共享libs的人我在缓解iOS的spatialite集成方面取得了一些进展。
现在我能够建立一个完全独立的静态空间库(2.3.1嵌入所需的GEOS和PROJ,这样就不必带走它们了。) / p>

只需下载邮编您将获得x86和arm +标题的.a,以便您可以直接使用这些标题中的spatialite接口。



一旦你拖动.a(两者都需要在模拟器和真实硬件上工作),你可以通过调用<$来初始化spatialite c $ c> spatialite_init(1)。



以下内容应显示在您的控制台日志中:

 
SpatiaLite版本..:2.3.1支持的扩展:
- 'VirtualShape'[直接Shapefile访问]
- 'VirtualText [直接CSV / TXT访问]
- 'V irtualNetwork [Dijkstra最短路径]
- 'RTree'[空间索引 - R *树]
- 'MbrCache'[空间索引 - MBR缓存]
- 'VirtualFDO'[FDO-OGR互操作性]
- 'SpatiaLite'[空间SQL - OGC]
PROJ.4版......:Rel。 4。6。1,2008年8月21日
GEOS版本........:3.1.1-CAPI-1.6.0



I am new here and this is my first topic. I am very new on iOS platform and i am trying to use spatialiate extension with sqlite3 but i couldn't do this. It is making me crazy. I don't know how and where do i start. Can someone give me suggestion?

Thanks.

解决方案

I'm the guy who shared the libs on http:// ;-)I did some good progress on easing the integration of spatialite for iOS.Now I'm able to build a fully standalone static library of spatialite (2.3.1 that embeds the required GEOS and PROJ so that don't have to take car of them).

Just download the zip http://lionel.gueganton.free.fr/spatialite/spatialite2.3.1.zip and you'll get the .a for x86 and arm + headers so that you can use directly the spatialite interface from those headers.

Once you've drag n drop the .a (both are required to work in the simulator AND on the real hardware), you can initialize spatialite by just invoking spatialite_init(1).

The following should be displayed on your console log:

SpatiaLite version ..: 2.3.1    Supported Extensions:
    - 'VirtualShape'    [direct Shapefile access]
    - 'VirtualText      [direct CSV/TXT access]
    - 'VirtualNetwork   [Dijkstra shortest path]
    - 'RTree'       [Spatial Index - R*Tree]
    - 'MbrCache'        [Spatial Index - MBR cache]
    - 'VirtualFDO'      [FDO-OGR interoperability]
    - 'SpatiaLite'      [Spatial SQL - OGC]
PROJ.4 version ......: Rel. 4.6.1, 21 August 2008
GEOS version ........: 3.1.1-CAPI-1.6.0

这篇关于如何为iOS编译spatialite的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-23 08:19