Changes between Version 53 and Version 54 of GeoDjangoInstall


Ignore:
Timestamp:
Aug 16, 2008, 3:52:24 PM (16 years ago)
Author:
springmeyer
Comment:

Added a few more notes about postgis sql directories

Legend:

Unmodified
Added
Removed
Modified
  • GeoDjangoInstall

    v53 v54  
    121121   * Note: the `flex` package maybe required for PostGIS compilation on Debian distributions and may be installed with the command: `apt-get install flex`
    122122
    123 Next, create a role and database for your application, and allow it to access PostGIS functionality.  PostGIS SQL files are installed in the PostgreSQL share directory (`/usr/postgres/8.2/share` in the example below; use the `pg_config --sharedir` command to determine this directory on your system).
     123Next, create a role and database for your application, and allow it to access PostGIS functionality.
    124124{{{
    125125# su - postgres
     
    127127$ createdb -O <user> <db_name>
    128128$ createlang plpgsql <db_name>
    129 $ psql -d <db_name> -f /usr/postgres/8.2/share/lwpostgis.sql
     129}}}
     130Now, load the postgis sql functions and spatial_ref_table of projection information.
     131 * Note:PostGIS SQL files are ''ususally'' installed in the PostgreSQL share directory (`/usr/postgres/8.2/share` in the example below; use the `pg_config --sharedir` command to determine this directory on your system, which can vary widely depending on your PostgreSQL version and install method as well as how you install postgis, ie from source or with apt-get).
     132{{{
     133$ psql -d <db_name> -f /usr/postgres/8.2/share/lwpostgis.sql # check your PostgreSQL Version, 8.x
    130134}}}
    131135If the lwpostgis.sql file is not found try:
Back to Top