Changes between Version 39 and Version 40 of GeoDjangoInstall


Ignore:
Timestamp:
Apr 24, 2008, 7:18:08 PM (17 years ago)
Author:
jbronn
Comment:

Updated (lots of new versions).

Legend:

Unmodified
Added
Removed
Modified
  • GeoDjangoInstall

    v39 v40  
    2424 * '''PostgreSQL'''
    2525   * ''Recommended:'' PostgreSQL 8.x.  If installing binary packages, please install the development package as well for headers required in PostGIS compilation.
    26    * We are currently developing using both v8.1 and v8.2 of PostgreSQL.
     26   * We are currently developing using both v8.1-8.3 of PostgreSQL.
    2727   * On Ubuntu Feisty and Debian etch, install `postgresql-8.x` and `postgresql-server-dev-8.x` (the development package is required for PostGIS compilation).
    2828     * On Debian etch install the `libpq-dev` package, which includes the `pg_config` executable (also required for PostGIS compilation).
    2929 * '''psycopg2'''
    30    * [http://initd.org/tracker/psycopg/wiki/PsycopgTwo psycopg2] is a Python database adapter for PostgreSQL.  Latest version is [http://initd.org/pub/software/psycopg/psycopg2-2.0.6.tar.gz 2.0.6].
     30   * [http://initd.org/tracker/psycopg/wiki/PsycopgTwo psycopg2] is a Python database adapter for PostgreSQL.  Latest version is [http://initd.org/pub/software/psycopg/psycopg2-2.0.7.tar.gz 2.0.7].
    3131
    3232=== Django ===
     
    9595
    9696=== PostGIS ===
    97  * ''Required'':  PostGIS ~~v1.1.0~~ v1.2.1 and above.  1.1.0 support is currently pending, ''see'' #5498.
    98  * ''Recommended'': [http://postgis.refractions.net PostGIS] [http://postgis.refractions.net/download/postgis-1.3.2.tar.gz v1.3.2] (this is the current [http://postgis.refractions.net/news/20071201/ latest version]).
     97 * ''Required'':  PostGIS v1.2.1 and above.
     98 * ''Recommended'': [http://postgis.refractions.net PostGIS] [http://postgis.refractions.net/download/postgis-1.3.3.tar.gz v1.3.3] (this is the current [http://postgis.refractions.net/news/20080412/ latest version]).
    9999
    100100First, download PostGIS, and untar the archive:
    101101{{{
    102 $ wget http://postgis.refractions.net/download/postgis-1.3.2.tar.gz
    103 $ tar xzf postgis-1.3.2.tar.gz
    104 $ cd postgis-1.3.2
     102$ wget http://postgis.refractions.net/download/postgis-1.3.3.tar.gz
     103$ tar xzf postgis-1.3.3.tar.gz
     104$ cd postgis-1.3.3
    105105}}}
    106106
    107107Run the `configure` script enabling GEOS and PROJ support, `make`, and install.
    108108{{{
    109 $ ./configure --with-geos --with-proj
     109$ ./configure
    110110$ make
    111111# make install
     
    122122$ psql -d <db_name> -f /usr/postgres/8.2/share/spatial_ref_sys.sql
    123123$ psql <db_name>
    124 <db_name>=# GRANT SELECT, UPDATE, INSERT, DELETE ON geometry_columns TO <user>;
    125 <db_name>=# GRANT SELECT ON spatial_ref_sys TO <user>;
     124<db_name>=# ALTER TABLE geometry_columns OWNER TO <user>;
     125<db_name>=# ALTER TABLE spatial_ref_sys OWNER TO <user>;
    126126}}}
    127127
     
    137137=== GDAL ===
    138138 * ''Required'': GDAL versions 1.4.0 and above (!GeoDjango has not been tested with the 1.3.x series).
    139  * ''Recommended'': GDAL version 1.5.0.
     139 * ''Recommended'': GDAL version 1.5 and above.
    140140
    141141GDAL/OGR is an excellent open source geospatial library that support features such as coordinate transformations and reading/writing ''both'' vector (e.g., SHP) and raster (e.g., GeoTIFF) geographic data -- however, !GeoDjango does not yet support GDAL's raster capabilities.  Installation of GDAL is ''highly recommended'' because some features (e.g., a large number of `SpatialRefSys` model routines and the `LayerMapping` utility) require GDAL capabilities; however GDAL is not required for core functionality like spatial queries.
    142142 
    143 First, download the latest [http://trac.osgeo.org/gdal/wiki/DownloadSource GDAL] version (currently [http://download.osgeo.org/gdal/gdal-1.5.0.tar.gz 1.5.0]), and untar the archive:
    144 {{{
    145 $ wget http://download.osgeo.org/gdal/gdal-1.5.0.tar.gz
    146 $ tar xzf gdal-1.5.0.tar.gz
    147 $ cd gdal-1.5.0
     143First, download the latest [http://trac.osgeo.org/gdal/wiki/DownloadSource GDAL] version (currently [http://download.osgeo.org/gdal/gdal-1.5.1.tar.gz 1.5.1]), and untar the archive:
     144{{{
     145$ wget http://download.osgeo.org/gdal/gdal-1.5.1.tar.gz
     146$ tar xzf gdal-1.5.1.tar.gz
     147$ cd gdal-1.5.1
    148148}}}
    149149
    150150Configure with GEOS support, run `make` (use `gmake` on Solaris platforms) and install:
    151151{{{
    152 $ ./configure --with-geos
     152$ ./configure --datadir=/path/to/data_files
    153153$ make
    154154# make install
    155155}}}
    156156
     157Specifying the data directory at compile time avoids having to set the `GDAL_DATA` environment variable (see troubleshooting tip below).
    157158
    158159'''Troubleshooting:''' If you receiving the following error message when running the GDAL tests and/or working with `SpatialReference` objects:
     
    201202=== Python ===
    202203
    203 Download and run the [http://python.org/ftp/python/2.5.1/python-2.5.1.msi Python installer].  We highly recommend you use Python 2.5 or greater (2.5.1 is the latest, and the version linked to).  Python 2.5 includes the `ctypes` library, which is required for the GEOS, GDAL, and readline (if you're using IPython) interfaces.  Python 2.4 users may obtain `ctypes` from the [http://sourceforge.net/project/showfiles.php?group_id=71702 sourceforge download page].
     204Download and run the [http://python.org/ftp/python/2.5.2/python-2.5.2.msi Python installer].  We highly recommend you use Python 2.5 or greater (2.5.2 is the latest, and the version linked to).  Python 2.5 includes the `ctypes` library, which is required for the GEOS, GDAL, and readline (if you're using IPython) interfaces.  Python 2.4 users may obtain `ctypes` from the [http://sourceforge.net/project/showfiles.php?group_id=71702 sourceforge download page].
    204205
    205206In order to be able to invoke `python` from the command-line, setup your Windows `Path` environment variable to include the Python installation directory:
     
    212213=== PostgreSQL ===
    213214
    214 Download and run the PostgreSQL installer from [http://www.postgresql.org/ftp/binary/v8.2.4/win32/ here].  Do '''not'''  install the PostGIS version bundled with this installer.  The latest version of PostgreSQL is 8.2.5.
     215Download and run the PostgreSQL installer for either [http://www.postgresql.org/ftp/binary/v8.2.7/win32/ version 8.2.7] or [http://www.postgresql.org/ftp/binary/v8.3.1/win32/ version 8.3.1].  If using 8.2, do '''not'''  install the PostGIS version bundled with the installer.
    215216
    216217If you want to invoke PostgreSQL commands from the shell, append "`;C:\Program Files\PostgreSQL\8.2\bin`" to the Windows `Path`.
     
    218219=== PostGIS  ===
    219220
    220 PostGIS maintains a [http://postgis.refractions.net/download/windows/ distribution for Windows], and includes pre-built libraries for PROJ 4.5.0 and GEOS 3.0.0rc4 (both are the latest versions).  You may download the latest [http://postgis.refractions.net/download/windows/pg82/postgis-pg82-setup-1.3.1-1.exe PostGIS (1.3.1) here].  Run this ''after'' the PostgreSQL installer.
     221PostGIS maintains a [http://postgis.refractions.net/download/windows/ distribution for Windows], and includes pre-built libraries for PROJ 4.5.0 and GEOS 3.0.0rc4 (both are the latest versions).   Follow the instructions for your version of PostgreSQL.
    221222
    222223If you added the directory to PostgreSQL to your `Path` (see above), the following command may be used to easily create spatial databases:
     
    227228=== psycopg2 ===
    228229
    229 Windows binary packages of the `psycopg2` module are packaged by Jason Erickson, and may be downloaded from his [http://www.stickpeople.com/projects/python/win-psycopg/ win-psycopg website].  The latest version maintained for Python 2.5 and PostgreSQL 8.2.4  is [http://www.stickpeople.com/projects/python/win-psycopg/psycopg2-2.0.6.win32-py2.5-pg8.2.4-release.exe pyscopg2 2.0.6].
     230Windows binary packages of the `psycopg2` module are packaged by Jason Erickson, and may be downloaded from his [http://www.stickpeople.com/projects/python/win-psycopg/ win-psycopg website].  The latest version maintained for Python 2.5 and PostgreSQL 8.3.1  is [http://www.stickpeople.com/projects/python/win-psycopg/psycopg2-2.0.7.win32-py2.5-pg8.3.1-release.exe 2.0.7].
    230231
    231232=== GEOS ===
Back to Top