Difference between revisions of "PostGIS Installation"
Jump to navigation
Jump to search
(Created page with "* http://postgis.net/install/ == Installation Commands == Going off of http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS23UbuntuPGSQL96Apt <nowiki> $ lsb_release --code...") |
|||
Line 14: | Line 14: | ||
$ psql -V | $ psql -V | ||
psql (PostgreSQL) 9.5.4 | psql (PostgreSQL) 9.5.4 | ||
− | $ sudo apt install postgresql-9.5-postgis-2.3 | + | $ sudo apt install postgresql-9.5-postgis-2.3</nowiki> |
− | </nowiki> | + | |
+ | == Enabling Commands == | ||
+ | |||
+ | Need to enable for each database you want to use it in before you can use it. | ||
+ | |||
+ | Going off of right column of http://postgis.net/install/ | ||
+ | |||
+ | <nowiki> | ||
+ | $ psql -U postgres | ||
+ | > create extension postgis; | ||
+ | > create extension fuzzystrmatch; | ||
+ | > create excention postgis_tiger_geocoder;</nowiki> |
Revision as of 18:34, 19 September 2017
Installation Commands
Going off of http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS23UbuntuPGSQL96Apt
$ lsb_release --codename Codename: trusty $ sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt trusty-pgdg main" >> /etc/apt/sources.list' $ wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add - $ sudo apt-get update $ psql -V psql (PostgreSQL) 9.5.4 $ sudo apt install postgresql-9.5-postgis-2.3
Enabling Commands
Need to enable for each database you want to use it in before you can use it.
Going off of right column of http://postgis.net/install/
$ psql -U postgres > create extension postgis; > create extension fuzzystrmatch; > create excention postgis_tiger_geocoder;