| 1 | = How to install PostGIS 2.0 on Ubuntu 12.10 (''quantal'') from packages = |
| 2 | |
| 3 | == Install == |
| 4 | |
| 5 | Add PPA and install packages using: |
| 6 | {{{ |
| 7 | sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable |
| 8 | sudo apt-get update |
| 9 | sudo apt-get install postgis |
| 10 | }}} |
| 11 | |
| 12 | |
| 13 | == Spatially enabling a database == |
| 14 | |
| 15 | Connect to your database using pgAdmin or psql, and run the following commands. To add postgis with raster support: |
| 16 | {{{ |
| 17 | CREATE EXTENSION postgis; |
| 18 | }}} |
| 19 | |
| 20 | To add topology support, a second extension can be created on the database: |
| 21 | {{{ |
| 22 | CREATE EXTENSION postgis_topology; |
| 23 | }}} |
| 24 | |
| 25 | == See also == |
| 26 | * https://help.ubuntu.com/community/PostgreSQL |