1 postgreSQL 安装
下载:https://www.postgresql.org/
2 postgis
postgis 属于postgresql插件,安装pg时勾选上postgis
3. 导入shp数据
postgresql可以导入shp数据
![在这里插入图片描述](https://img-blog.csdnimg.cn/direct/6f307525f3a640b3998d0dcd98e4a517.png)
4. postgis使用
https://postgis.net/workshops/postgis-intro/creating_db.html
4.1 创建数据库
create database geo;
create extension postgis;