六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 347|回复: 0

Ubuntu中安装postgis

[复制链接]

升级  38.67%

28

主题

28

主题

28

主题

秀才

Rank: 2

积分
108
 楼主| 发表于 2013-1-30 01:37:08 | 显示全部楼层 |阅读模式
如何在Ubuntu服务器的命令行下安装Postgis呢,弄了很久,终于解决了。


首先要确认安装好了postgresql


1. sudo apt-get install postgresql-8.3-postgis


2. sudo su postgres
    createdb postgis_template
    createlang plpgsql postgis_template
    psql -d postgis_template -f /usr/share/postgresql-8.3-postgis/lwpostgis.sql
    psql -d postgis_template -f /usr/share/postgresql-8.3-postgis/spatial_ref_sys.sql
 
这样就安装好了,这比自己下载下来编译简单多了
 
参考链接http://www.paolocorti.net/2008/01/30/installing-postgis-on-ubuntu/
 
 
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表