Changes between Version 40 and Version 41 of GeoDjangoInstall
- Timestamp:
- May 29, 2008, 10:55:04 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GeoDjangoInstall
v40 v41 20 20 === Python & PostgreSQL === 21 21 * '''Python''' 22 * ''Required:'' Python 2.4 is required because of heavy use of 2.4 decorator syntax (e.g. `@property`). The `ctypes` module needs to be installed as well. 22 * ''Required:'' Python 2.4 is required because of heavy use of 2.4 decorator syntax (e.g. `@property`). 23 * If using Python 2.4, the `ctypes` module needs to be installed as well. 24 * Binary packages like `python2.4-ctypes` on Ubuntu/Debian may be used; however, older distributions (like Ubuntu 6.06) use old versions of ctypes that contain bugs -- in such instances, install the latest version (currently 1.0.2) which may be obtained from the [http://sourceforge.net/project/showfiles.php?group_id=71702 ctypes sourceforge project]. 23 25 * ''Recommended:'' Python 2.5 is recommended because the `ctypes` module comes included. [http://python.org/download/releases/2.5.2/ Python 2.5.2] is the current latest. 24 26 * '''PostgreSQL''' … … 70 72 * ''Recommended'': [ftp://ftp.remotesensing.org/proj/proj-4.6.0.tar.gz 4.6.0] (the current latest). 71 73 72 [http:// www.remotesensing.org/proj/ PROJ.4] ([http://proj.maptools.org/ mirror site])is a library for converting geospatial data to different coordinate reference systems.74 [http://trac.osgeo.org/proj/ PROJ.4] is a library for converting geospatial data to different coordinate reference systems. 73 75 74 76 First, download PROJ.4 from the remotesensing website, and untar the source archive: 75 77 {{{ 76 $ wget ftp://ftp.remotesensing.org/proj/proj-4.6.0.tar.gz78 $ wget http://download.osgeo.org/proj/proj-4.6.0.tar.gz 77 79 $ tar xzf proj-4.6.0.tar.gz 78 80 }}} … … 105 107 }}} 106 108 107 Run the `configure` script enabling GEOS and PROJ support, `make`, and install.109 Run the `configure` script, `make`, and install. 108 110 {{{ 109 111 $ ./configure … … 139 141 * ''Recommended'': GDAL version 1.5 and above. 140 142 141 GDAL/OGRis 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.143 [http://trac.osgeo.org/gdal/ 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 144 143 145 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: … … 148 150 }}} 149 151 150 Configure with GEOS support, run `make` (use `gmake` on Solaris platforms) and install:151 {{{ 152 $ ./configure --datadir=/ path/to/data_files152 Configure specifying the data directory (if installing in `/usr/local`, then use `/usr/local/share/gdal`), run `make` (use `gmake` on Solaris platforms) and install: 153 {{{ 154 $ ./configure --datadir=/usr/local/share/gdal 153 155 $ make 154 156 # make install 155 157 }}} 156 158 157 Specifying the data directory at compile time avoids having to set the `GDAL_DATA` environment variable (see troubleshooting tip below).159 Specifying the data directory at compile time avoids having to set the `GDAL_DATA` environment variable (see [http://trac.osgeo.org/gdal/ticket/2382 GDAL ticket #2382] and the troubleshooting tip below). 158 160 159 161 '''Troubleshooting:''' If you receiving the following error message when running the GDAL tests and/or working with `SpatialReference` objects: