Changes between Version 3 and Version 4 of GeoDjangoInstall
- Timestamp:
- Sep 16, 2007, 5:30:11 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GeoDjangoInstall
v3 v4 62 62 }}} 63 63 64 * Next, create a role and database for your application, and allow it to access PostGIS functionality :64 * 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 `pg_config --sharedir` to determine this directory on your system). 65 65 {{{ 66 66 # su - postgres 67 $ psql 68 postgres=# CREATE ROLE <user> LOGIN; 69 postgres=# \q 67 $ createuser <user> 70 68 $ createdb -O <user> <db_name> 71 69 $ createlang plpgsql <db_name> 72 $ psql -d <db_name> -f /usr/ local/share/lwpostgis.sql73 $ psql -d <db_name> -f /usr/ local/share/spatial_ref_sys.sql70 $ psql -d <db_name> -f /usr/postgres/8.2/share/lwpostgis.sql 71 $ psql -d <db_name> -f /usr/postgres/8.2/share/spatial_ref_sys.sql 74 72 $ psql <db_name> 75 73 <db_name>=# GRANT SELECT, UPDATE, INSERT, DELETE ON geometry_columns TO <user>; … … 80 78 81 79 === GDAL === 82 * ''Highly Recommended'': Some features ( e.g. a large number of {{{SpatialRefSys}}} model routines) require GDAL, but it is not necessary for core functionality (e.g. spatial queries).83 * GDAL/OGR includes useful for coordinate transformations and reading/writing ''both'' vector ( e.g. SHP) and raster (e.g.GeoTIFF) geographic data.80 * ''Highly Recommended'': Some features (''e.g.'', a large number of {{{SpatialRefSys}}} model routines) require GDAL, but it is not necessary for core functionality like spatial queries. 81 * GDAL/OGR includes useful for coordinate transformations and reading/writing ''both'' vector (''e.g.'', SHP) and raster (''e.g.'', GeoTIFF) geographic data. 84 82 * For example, the following command will convert your SHP file into [http://en.wikipedia.org/wiki/WGS84 WGS84] (standard lat/lon). Then you can import directly into your database using {{{shp2pgsql}}} (utility from PostGIS): 85 83 {{{