Ubuntu PostgreSQL postgis 扩展模块安装

1、更新你的系统:

sudo apt-get update && sudo apt-get upgrade
2、安装PostgreSQL
 从Ubuntu软件包存储库安装PostgreSQL:

sudo apt-get install postgresql postgresql-contrib


3、安装(插件)PostGIS | pgrouting
sudo apt install postgresql postgresql-contrib postgis postgresql-9.5-postgis-2.2
 
//以下自己选择 添加扩展
psql -c "CREATE EXTENSION hstore;" -d postgres
psql -c "CREATE EXTENSION postgis;" -d postgres    
psql -c "CREATE EXTENSION postgis_topology;" -d postgres
psql -c "CREATE EXTENSION postgis_tiger_geocoder;" -d postgres
psql -c "CREATE EXTENSION fuzzystrmatch;" -d postgres
 
sudo apt-get install postgresql-9.5-pgrouting   (安装添加pgrouting)
psql -c "CREATE EXTENSION pgrouting;" -d postgres
 
 原文地址:https://blog.csdn.net/zj3172172173/article/details/82876719
 

猜你喜欢

转载自blog.csdn.net/GIS_BT/article/details/92389900