Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 553
Siavash Avatar asked Mar 03 '11 06:03

Siavash


2 Answers

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/

like image 155
diegueus9 Avatar answered Oct 06 '22 00:10

diegueus9


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.

like image 39
TonyTony Avatar answered Oct 05 '22 23:10

TonyTony