43 | | * We have been developing using [http://geos.refractions.net/ GEOS] 3.0.0RC4, and have not tested using GEOS 2.x. Despite the "RC" nomenclature, 3.0.0RC4 is quite stable, and will be renamed to 3.0.0 after FOSS4G. |
44 | | * ''See'' Mateusz Loskot (GEOS lead developer), [http://lists.refractions.net/pipermail/geos-devel/2007-August/002936.html Note about GEOS 3.0.0 release]. |
45 | | * !GeoDjango has its own GEOS `ctypes` wrapper; you do ''not'' need to enable the existing GEOS Python bindings. |
46 | | * `ctypes` comes standard with Python 2.5. If you run Python 2.4, `ctypes` may be [http://sourceforge.net/project/showfiles.php?group_id=71702&package_id=71318 downloaded here], but in Debian etch you may install the `python-ctypes` package. |
47 | | * If you are running Mac OS X 10.5 and using 3.0.0RC4 you will need to apply two quick hand-patches from [http://trac.osgeo.org/geos/ticket/162 here] and [http://lists.osgeo.org/pipermail/geos-devel/2007-November/003125.html here]. |
48 | | * Configure, make, and install (`g++` is required for compilation) |
49 | | {{{ |
| 43 | !GeoDjango uses the [http://geos.refractions.net/downloads/geos-3.0.0.tar.bz2 3.0.0] version of [http://geos.refractions.net/ GEOS], and is not compatible with the 2.x versions. With the release of 3.0.0, support for the release candidate versions will be eventually deprecated due to differences in the way geometries are serialized to WKT and HEX, as well as compilation issues for OSX 10.5. However, the RC4 libraries are still supported for the moment, though we urge users to migrate to the 3.0.0 release. |
| 44 | |
| 45 | !GeoDjango has its own GEOS `ctypes` wrapper; you do ''not'' need to enable the existing GEOS Python bindings. The `ctypes` library comes standard with Python 2.5; if you run Python 2.4, `ctypes` may be [http://sourceforge.net/project/showfiles.php?group_id=71702&package_id=71318 downloaded here], and in Debian etch you may install the `python-ctypes` package. |
| 46 | |
| 47 | First, download GEOS 3.0.0 from the refractions website and untar the source archive: |
| 48 | {{{ |
| 49 | $ wget http://geos.refractions.net/downloads/geos-3.0.0.tar.bz2 |
| 50 | $ tar xjf geos-3.0.0.tar.bz2 |
| 51 | }}} |
| 52 | |
| 53 | Next, change into the directory where GEOS was unpacked, run the `configure` script, compile, and install: |
| 54 | {{{ |
| 55 | $ cd geos-3.0.0 |
57 | | * Latest [http://proj.maptools.org/ PROJ.4] version is 4.5.0. We have no reason to believe that previous versions (''e.g.'', 4.4.x, 4.3.x) will not work. |
58 | | * First, download the PROJ [ftp://ftp.remotesensing.org/proj/proj-datumgrid-1.3.tar.gz datum shifting files]. These will come in handy for coordinate transformations when other programs (like Mapserver or Mapnik) are not able to cope with EPSG transformations (I learned the hard way). Untar/unzip these in the `nad` subdirectory of the PROJ source. For example, if PROJ was unzipped in a directory named `proj`, then untar these files in `proj/nad`. Do this '''before''' you do the configure/make/install dance. |
59 | | * ''See'' [http://remotesensing.org/proj/faq.html PROJ FAQ]; ''see also'' [http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0301/msg00541.html Frank Warmerdam's reply to a Mapserver question]. |
60 | | * Next, configure, make and install. |
| 64 | The latest [http://proj.maptools.org/ PROJ.4] version is [ftp://ftp.remotesensing.org/proj/proj-4.6.0.tar.gz 4.6.0]. !GeoDjango also works with version 4.5.0, but there is no reason to believe that previous versions (''e.g.'', 4.4.x, 4.3.x) will not work. |
| 65 | |
| 66 | First, download PROJ.4 from the remotesensing website, and untar the source archive: |
| 67 | {{{ |
| 68 | $ wget ftp://ftp.remotesensing.org/proj/proj-4.6.0.tar.gz |
| 69 | $ tar xzf proj-4.6.0.tar.gz |
| 70 | }}} |
| 71 | |
| 72 | Next, download the PROJ.4 [ftp://ftp.remotesensing.org/proj/proj-datumgrid-1.3.tar.gz datum shifting files]. These will come in handy for coordinate transformations when other programs (like Mapserver or Mapnik) are not able to cope with EPSG transformations (I learned the hard way). Untar/unzip these in the `nad` subdirectory of the PROJ.4 source: |
| 73 | {{{ |
| 74 | $ wget ftp://ftp.remotesensing.org/proj/proj-datumgrid-1.3.tar.gz |
| 75 | $ cd proj-4.6.0/nad |
| 76 | $ tar xzf ../../proj-datumgrid-1.3.tar.gz |
| 77 | }}} |
| 78 | Do this '''before''' you do the configure/make/install dance. |
| 79 | * ''See'' [http://remotesensing.org/proj/faq.html PROJ FAQ]; ''see also'' [http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0301/msg00541.html Frank Warmerdam's reply to a Mapserver question]. |
| 80 | |
| 81 | Finally, configure, make and install: |