Siavash
Siavash

Reputation: 368

How To Install GEOS for GeoDjango on Windows

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

The problem is I just can't get passed installing GEOS, how is it done?

Upvotes: 11

Views: 17655

Answers (4)

Ivan Zamula
Ivan Zamula

Reputation: 1

In my case, I had to use with my Ubuntu:

 sudo apt-get install gdal-bin

Upvotes: 0

TonyTony
TonyTony

Reputation: 1404

what I did is to install GDAL from this answer, Unable to install Python and GDAL (DLL load failed), and then add this line to settings.py,

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

then it is fine to use postgis.

Upvotes: 5

Jorge Vidinha
Jorge Vidinha

Reputation: 434

Follow this tutorial it will Install GDAL complete library including GEOS. Just did it yesterday worked fine

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

Upvotes: 1

diegueus9
diegueus9

Reputation: 31582

I follow the instructions in

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

For the instalation of GEOS library in windows i use this:

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

Upvotes: 7

Related Questions