Changes between Version 33 and Version 34 of GeoDjangoInstall


Ignore:
Timestamp:
02/11/08 13:49:28 (7 years ago)
Author:
jbronn
Comment:

Added GDAL installation troubleshooting tip about GDAL_DATA environment variable.

Legend:

Unmodified
Added
Removed
Modified
  • GeoDjangoInstall

    v33 v34  
    153153}}}
    154154
     155
     156'''Troubleshooting:''' If you receiving the following error message when running the GDAL tests and/or working with `SpatialReference` objects:
     157{{{
     158ERROR 4: Unable to open EPSG support file gcs.csv.
     159...
     160OGRException: OGR failure.
     161}}}
     162
     163The solution is to set the `GDAL_DATA` environment variable to the location of the GDAL data files (typically `/usr/local/share`; use the `gdal-config --datadir` command to find out for sure) before invoking Python. For example:
     164{{{
     165$ export GDAL_DATA=`gdal-config --datadir`
     166$ python manage.py shell
     167}}}
     168
    155169'''Note:''' The path to the GDAL library may be manually specified by setting `GDAL_LIBRARY_PATH` in your settings with the full path to the GDAL library (e.g., the `.so` or `.dylib` file).
    156170
Back to Top