1.在此(https://www.bigsql.org/postgresql/installers.jsp/)下载postgresql(开源数据库,gis行业推荐使用);

2.在此(http://winnie.postgis.net/download/windows/pg94/)下载对应postgresql版本的postgis(postgresql数据库gis空间数据库插件);

3.可在第二步路径下找到pgrounting(空间数据库路径分析插件)下载地址。

安装步骤图解:

1.点击postgresql安装文件:

postgresql+postgis+pgrouting安装步骤图解

2.选择安装路径:

postgresql+postgis+pgrouting安装步骤图解

3.选择存储数据路径:

postgresql+postgis+pgrouting安装步骤图解

4.设置超级管理员密码:

postgresql+postgis+pgrouting安装步骤图解

5.选择端口:

postgresql+postgis+pgrouting安装步骤图解

6.使用场景,选择C:

postgresql+postgis+pgrouting安装步骤图解

7.默认下一步:

postgresql+postgis+pgrouting安装步骤图解

8.安装过程:

postgresql+postgis+pgrouting安装步骤图解

9.完成安装,取消勾选:

postgresql+postgis+pgrouting安装步骤图解

10.打开postgis可可安装文件:

postgresql+postgis+pgrouting安装步骤图解

11.创建一个新的空间数据库,新建空间数据库一次为模板:

postgresql+postgis+pgrouting安装步骤图解

12.默认和postgresql同一目录(默认安装pgrouting2.0):

postgresql+postgis+pgrouting安装步骤图解

13.登录postgresql:

postgresql+postgis+pgrouting安装步骤图解

14.创建空间数据库:

postgresql+postgis+pgrouting安装步骤图解

15.出现如下三个提示,默认都选择“是”:

postgresql+postgis+pgrouting安装步骤图解

postgresql+postgis+pgrouting安装步骤图解

postgresql+postgis+pgrouting安装步骤图解

16.完成安装:

postgresql+postgis+pgrouting安装步骤图解

17.登录pgAdmin III:

postgresql+postgis+pgrouting安装步骤图解

18.新建空间数据:

postgresql+postgis+pgrouting安装步骤图解

19.以安装是创建数据库为模板:

postgresql+postgis+pgrouting安装步骤图解

20.使用PostGIS下工具上传shp至数据库:

postgresql+postgis+pgrouting安装步骤图解

21.连接到postgresql:

postgresql+postgis+pgrouting安装步骤图解

22.Add File添加shp文件(修改SRID为4326或相应空间参考):

postgresql+postgis+pgrouting安装步骤图解

23.修改字符编码,为了支持中文:

postgresql+postgis+pgrouting安装步骤图解

24.导入:

postgresql+postgis+pgrouting安装步骤图解

25.查看导入数据:

postgresql+postgis+pgrouting安装步骤图解

postgresql+postgis+pgrouting安装步骤图解

26.pgrouting默认跟随postgis一起安装,若需安装pgrouting,只需下载对应zip包,将bin,lib,shared三个文件夹覆盖到postgresql安装路径。

 

相关文章: