Jump to content

PostgreSQL postgis: Difference between revisions

From annawiki
Created page with "Example for Ubuntu and osmdb apt install postgis psql -d xxx //xxx=any dbname of a db one can connect to CREATE DATABASE osmdb; \c osmdb; CREATE EXTENSION postgis;"
 
No edit summary
Line 5: Line 5:
  \c osmdb;
  \c osmdb;
  CREATE EXTENSION postgis;
  CREATE EXTENSION postgis;
SELECT PostGIS_Version(); //verify install

Revision as of 2025-08-12T14:06:02

Example for Ubuntu and osmdb

apt install postgis
psql -d xxx //xxx=any dbname of a db one can connect to
CREATE DATABASE osmdb;
\c osmdb;
CREATE EXTENSION postgis;
SELECT PostGIS_Version(); //verify install