小编Han*_*ans的帖子

让GeoDjango + Spatialite在Windows上运行

我在设置GeoDjango安装时仍然遇到问题,该安装使用Spatialite作为Windows机器的后端.

我使用了GeoDjango安装程序并从http://www.gaia-gis.it/spatialite/binaries.html下载了预编译库,并将它们转储到我的geodjango/bin目录中.

我将我的pysqlite2安装升级到最新版本,以便可以加载扩展并SPATIALITE_LIBRARY_PATH在我的设置文件中指定.

当我运行时,manage syncdb我得到以下输出

C:\stuff>manage.py syncdb
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 Rel. 4.6.1, 21 August 2008
GEOS version 3.0.2-CAPI-1.4.2

但是,在为表设置索引时,我收到以下消息:

...
Installing custom SQL for core.LocationHint model
updateTableTriggers: "no such module: rtree" …

sqlite django geodjango spatialite

5
推荐指数
1
解决办法
2744
查看次数

标签 统计

django ×1

geodjango ×1

spatialite ×1

sqlite ×1