方法:
使用借助python导入到postgresql或者postgregis
导入包
import geopandas as gpd
import pandas as pd
from sqlalchemy import create_engine
读取图层并导入postgis
# 连接postgresql
engine = create_engine("postgres://postgres:root@localhost:5432/postgis_31_sample")
# 导入图层至python
city_map = gpd.read_file('city_map.shp)
# 导入图层至postgis
city_map.to_postgis((name='city_map',con=engine,chunksize=1000) )