Differences between revisions 4 and 5
Revision 4 as of 2008-09-23 15:02:10
Size: 1472
Editor: qingfeng
Comment:
Revision 5 as of 2009-02-09 08:58:33
Size: 1427
Editor: qingfeng
Comment:
Deletions are marked like this. Additions are marked like this.
Line 54: Line 54:
http://gist.github.com/raw/11973/d65115726a8308cbd593fafe4999b8f214295247 http://gist.github.com/11973

GeoDjango 清风(2008-09-23) TableOfContents GeoDjango的介绍和配置记录

简介

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中

GeoDjango Install

  • 本人只在FreeBSD下进行过安装测试

基础准备

首先利用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

安装后的测试

http://geodjango.org/images/geodjango.png

推荐使用 geodjango-basic-apps 来测试 :

http://code.google.com/p/geodjango-basic-apps/

最终效果:

http://f.hatena.ne.jp/images/fotolife/y/yanxu/20080923/20080923141941.png

利用Google Maps

效果图:

http://f.hatena.ne.jp/images/fotolife/y/yanxu/20080923/20080923161138.png

代码:

http://gist.github.com/11973

全部Google Maps封装:

http://code.djangoproject.com/browser/django/trunk/django/contrib/gis/maps/google/overlays.py

使用过程中可能遇到的错误

全部记录在这里:

http://gist.github.com/11973

GeoDjango (last edited 2009-12-25 07:08:53 by localhost)