Code

Changes between Version 26 and Version 27 of GeoDjangoInstall


Ignore:
Timestamp:
12/25/07 14:10:37 (6 years ago)
Author:
jbronn
Comment:

Updated GEOS and PROJ.4 installation instructions for new versions.

Legend:

Unmodified
Added
Removed
Modified
  • GeoDjangoInstall

    v26 v27  
    2929 
    3030=== Django === 
    31  * !GeoDjango exists in the `gis` branch from SVN: 
     31!GeoDjango exists in the `gis` branch from SVN: 
    3232{{{ 
    3333$ svn co http://code.djangoproject.com/svn/django/branches/gis django_gis 
     
    3535}}} 
    3636 
    37  * To detect the correct `site-packages` directory, the following command may be used: 
     37To detect the correct `site-packages` directory, the following command may be used: 
    3838{{{ 
    3939$ python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()" 
     
    4141 
    4242=== GEOS === 
    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 
     47First, 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 
     53Next, change into the directory where GEOS was unpacked, run the `configure` script, compile, and install: 
     54{{{ 
     55$ cd geos-3.0.0 
    5056$ ./configure 
    5157$ make 
    5258# make install 
    5359}}} 
    54  * '''Note:''' The path to the GEOS library may be manually specified by setting `GEOS_LIBRARY_PATH` in your settings with the full path to the GEOS library (e.g., the `.so` or `.dylib` file). 
     60 
     61'''Note:''' The path to the GEOS library may be manually specified by setting `GEOS_LIBRARY_PATH` in your settings with the full path to the GEOS library (e.g., the `.so` or `.dylib` file). 
    5562 
    5663=== PROJ.4 === 
    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. 
     64The 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 
     66First, 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 
     72Next, 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}}} 
     78Do 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 
     81Finally, configure, make and install: 
    6182{{{ 
    6283$ ./configure