Changes between Version 1 and Version 2 of UsersWikiPostGIS22UbuntuPGSQL95Apt
- Timestamp:
- 02/11/16 12:26:05 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UsersWikiPostGIS22UbuntuPGSQL95Apt
v1 v2 57 57 }}} 58 58 59 Never install PostGIS in the postgres database, create a user database 59 60 You can also enable the PostGIS extension here (or with the GUI as described below): 60 61 61 62 {{{ 63 CREATE DATABASE gisdb; 64 \connect gisdb; 65 62 66 CREATE EXTENSION postgis; 63 }}} 67 SELECT postgis_full_version(); 68 }}} 69 70 should give you output something like this: 71 72 73 {{{ 74 postgis_full_version 75 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- 76 POSTGIS="2.2.1 r14555" GEOS="3.4.2-CAPI-1.8.2 r3921" PROJ="Rel. 4.8.0, 6 March 2012" GDAL="GDAL 1.10.1, released 2013/08/26" LIBXML="2.9.1" LIBJSON="0.11.99" RASTER 77 (1 row) 78 }}} 79 64 80 65 81 Exit the psql console: … … 75 91 76 92 {{{ 77 sudo nano /etc/postgresql/9. 4/main/pg_hba.conf93 sudo nano /etc/postgresql/9.5/main/pg_hba.conf 78 94 }}} 79 95