wiki:UsersWikiPostGIS21Ubuntu1404pkg

Version 1 (modified by Mike Taves, 10 years ago) ( diff )

install PostGIS 2.1 from packages

How to install PostGIS 2.1 on Ubuntu 14.04 LTS (trusty) from packages

Install PostGIS and dependencies

This command should install PostgreSQL 9.3 with PostGIS 2.1 and related dependencies:

sudo apt-get install postgresql-9.3-postgis-2.1

Spatially enabling a database

Connect to your database using pgAdminIII or psql, and use the commands to add the PostgreSQL extensions. To add PostGIS with raster support:

CREATE EXTENSION postgis;

To add topology support, a second extension can be created on the database:

CREATE EXTENSION postgis_topology;

See also

Note: See TracWiki for help on using the wiki.