GeoDjango 清风(2008-09-23)
GeoDjango的介绍和配置记录
1. 简介
The GIS branch intends to be a world-class geographic web framework. Our goal is to make it as easy as possible to build GIS web applications and harness the power of spatially enabled data.
目前 GeoDjango 已经合并到 Django 1.0中
2. GeoDjango Install
本人只在FreeBSD下进行过安装测试
2.1. 基础准备
首先利用ports安装如下软件:
Django Trunk or >=1.0 betas
- PostgreSQL
- PostGIS
- Psycopg2
- GEOS
- Proj.4
- GDAL
ports不多介绍了,详细见这里:
http://www.freebsd.org/doc/zh_CN/books/handbook/ports-using.html
2.2. 安装后的测试
推荐使用 geodjango-basic-apps 来测试 :
http://code.google.com/p/geodjango-basic-apps/
最终效果:
2.3. 利用Google Maps
效果图:
代码:
http://gist.github.com/raw/11973/d65115726a8308cbd593fafe4999b8f214295247
全部Google Maps封装:
http://code.djangoproject.com/browser/django/trunk/django/contrib/gis/maps/google/overlays.py
2.4. 使用过程中可能遇到的错误
全部记录在这里: