Changes between Version 53 and Version 54 of GeoDjangoInstall
- Timestamp:
- Aug 16, 2008, 3:52:24 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GeoDjangoInstall
v53 v54 121 121 * Note: the `flex` package maybe required for PostGIS compilation on Debian distributions and may be installed with the command: `apt-get install flex` 122 122 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).123 Next, create a role and database for your application, and allow it to access PostGIS functionality. 124 124 {{{ 125 125 # su - postgres … … 127 127 $ createdb -O <user> <db_name> 128 128 $ createlang plpgsql <db_name> 129 $ psql -d <db_name> -f /usr/postgres/8.2/share/lwpostgis.sql 129 }}} 130 Now, 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 130 134 }}} 131 135 If the lwpostgis.sql file is not found try: