Changes between Version 39 and Version 40 of GeoDjangoInstall
- Timestamp:
- Apr 24, 2008, 7:18:08 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GeoDjangoInstall
v39 v40 24 24 * '''PostgreSQL''' 25 25 * ''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.2of PostgreSQL.26 * We are currently developing using both v8.1-8.3 of PostgreSQL. 27 27 * On Ubuntu Feisty and Debian etch, install `postgresql-8.x` and `postgresql-server-dev-8.x` (the development package is required for PostGIS compilation). 28 28 * On Debian etch install the `libpq-dev` package, which includes the `pg_config` executable (also required for PostGIS compilation). 29 29 * '''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]. 31 31 32 32 === Django === … … 95 95 96 96 === 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]). 99 99 100 100 First, download PostGIS, and untar the archive: 101 101 {{{ 102 $ wget http://postgis.refractions.net/download/postgis-1.3. 2.tar.gz103 $ tar xzf postgis-1.3. 2.tar.gz104 $ cd postgis-1.3. 2102 $ 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 105 105 }}} 106 106 107 107 Run the `configure` script enabling GEOS and PROJ support, `make`, and install. 108 108 {{{ 109 $ ./configure --with-geos --with-proj109 $ ./configure 110 110 $ make 111 111 # make install … … 122 122 $ psql -d <db_name> -f /usr/postgres/8.2/share/spatial_ref_sys.sql 123 123 $ psql <db_name> 124 <db_name>=# GRANT SELECT, UPDATE, INSERT, DELETE ON geometry_columnsTO <user>;125 <db_name>=# GRANT SELECT ON spatial_ref_sysTO <user>;124 <db_name>=# ALTER TABLE geometry_columns OWNER TO <user>; 125 <db_name>=# ALTER TABLE spatial_ref_sys OWNER TO <user>; 126 126 }}} 127 127 … … 137 137 === GDAL === 138 138 * ''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. 140 140 141 141 GDAL/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. 142 142 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.gz146 $ tar xzf gdal-1.5. 0.tar.gz147 $ cd gdal-1.5. 0143 First, 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 148 148 }}} 149 149 150 150 Configure with GEOS support, run `make` (use `gmake` on Solaris platforms) and install: 151 151 {{{ 152 $ ./configure -- with-geos152 $ ./configure --datadir=/path/to/data_files 153 153 $ make 154 154 # make install 155 155 }}} 156 156 157 Specifying the data directory at compile time avoids having to set the `GDAL_DATA` environment variable (see troubleshooting tip below). 157 158 158 159 '''Troubleshooting:''' If you receiving the following error message when running the GDAL tests and/or working with `SpatialReference` objects: … … 201 202 === Python === 202 203 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.1is 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].204 Download 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]. 204 205 205 206 In order to be able to invoke `python` from the command-line, setup your Windows `Path` environment variable to include the Python installation directory: … … 212 213 === PostgreSQL === 213 214 214 Download and run the PostgreSQL installer f rom [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.215 Download 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. 215 216 216 217 If you want to invoke PostgreSQL commands from the shell, append "`;C:\Program Files\PostgreSQL\8.2\bin`" to the Windows `Path`. … … 218 219 === PostGIS === 219 220 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.221 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). Follow the instructions for your version of PostgreSQL. 221 222 222 223 If you added the directory to PostgreSQL to your `Path` (see above), the following command may be used to easily create spatial databases: … … 227 228 === psycopg2 === 228 229 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].230 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.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]. 230 231 231 232 === GEOS ===