您的位置:首页 > 数据库

Install PostgreSql and PostGIS On Ubuntu Server

2014-03-27 02:52 302 查看
  There is an article[1] for installing PostgreSQL on Ubuntu. [2] actually is a even better one if you want to install PostgreSQL and PostGIS at the same time.

  In order to use PostGIS in database, you need to execute two commands below[3] in every database that you want to have PostGIS extension.

-- Enable PostGIS (includes raster)
CREATE EXTENSION postgis;
-- Enable Topology
CREATE EXTENSION postgis_topology;


Reference:

[1]https://www.digitalocean.com/community/articles/how-to-install-and-use-postgresql-on-ubuntu-12-04

[2]http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS21UbuntuPGSQL93Apt

[3]http://postgis.net/install/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: