Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Ubuntu 16.04 - Install PostGIS

sudo apt-get install postgis

Setting Up Database For PostGIS

sudo -u postgres psql

Connect to the relevant database

\connect my_gis_database

Create the extension

CREATE EXTENSION postgis;

Check version:

SELECT PostGIS_version();
            postgis_version            
---------------------------------------
 2.4 USE_GEOS=1 USE_PROJ=1 USE_STATS=1
(1 row)

References

Last updated: 1st June 2024
First published: 16th August 2018

This blog is created by Stuart Page

I'm a freelance web developer and technology consultant based in Surrey, UK, with over 10 years experience in web development, DevOps, Linux Administration, and IT solutions.

Need support with your infrastructure or web services?

Get in touch