1. Install Homebrew
  2. brew install postgis
  3. If it fails due to permission issue:
  • sudo chown -R “$USER”:admin /usr/local to affect every sub directory of local or you can only mention the directory pointed by Homebrew

4. Login: psql -U postgres -h localhost -d gis

  • Here gis is the database to which I want to add Postgis capabilities

5. `CREATE EXTENSION postgis;`

6. Login to pgAdmin GUI software to check the functions and views added to this DB! These are all geospatial functions.


Originally published at sites.google.com.

Applied Deep Learning Engineer | LinkedIn

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store