How to install GEOS for GeoDjango on Windows

I am starting a GeoDjango project using Python 2.5, Django 1.2, MySQL and Apache. The project will be uploaded to the Linux server, but the development will be on Windows.

The problem is that I just can't get through the GEOS installation, how do I do this?

+8
windows django installation geos geodjango
source share
3 answers

I follow the instructions in

http://docs.djangoproject.com/en/dev/ref/contrib/gis/install/#windows

To install the GEOS library on windows, I use this:

http://trac.osgeo.org/osgeo4w/

+5
source share

what I did was install GDAL from this answer, Failed to install Python and GDAL (DLL loading failed) , and then add this line to settings.py ,

 GEOS_LIBRARY_PATH = 'C:/Program Files/GDAL/geos_c.dll' 

then good to use postgis.

+3
source share

Follow this guide, it will install the full GDAL library, including GEOS. It just worked fine yesterday.

http://www.gis.usu.edu/~chrisg/python/2009/docs/gdal_win.pdf

0
source share

All Articles