Changes between Version 1 and Version 2 of UsersWikiPostGIS22UbuntuPGSQL95Apt


Ignore:
Timestamp:
02/11/16 12:26:05 (9 years ago)
Author:
robe
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UsersWikiPostGIS22UbuntuPGSQL95Apt

    v1 v2  
    5757}}}
    5858
     59Never install PostGIS in the postgres database, create a user database
    5960You can also enable the PostGIS extension here (or with the GUI as described below):
    6061
    6162{{{
     63CREATE DATABASE gisdb;
     64\connect gisdb;
     65
    6266CREATE EXTENSION postgis;
    63 }}}
     67SELECT postgis_full_version();
     68}}}
     69
     70should 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
    6480
    6581Exit the psql console:
     
    7591
    7692{{{
    77 sudo nano /etc/postgresql/9.4/main/pg_hba.conf
     93sudo nano /etc/postgresql/9.5/main/pg_hba.conf
    7894}}}
    7995