随笔分类 -  GeoPandas

geopandas 生成 geojson 文件
摘要:创建 GeoDataFrame 输出 geojson 文件 import geopandas nan_index = np.where(~np.isnan(data.flatten())) # print(data[nan_index].shape) ss = np.stack((lon.flatt 阅读全文

posted @ 2022-08-30 17:45 闹不机米 阅读(852) 评论(0) 推荐(0) 编辑

geopandas 把 shp 文件入库到 postgis 数据库
摘要:lll = {'database': "test", 'user': 'postgres', 'password': 'postgis', 'host': '127.0.0.1', 'port': '5432'} engine = create_engine( f"postgresql+psycop 阅读全文

posted @ 2022-08-26 14:33 闹不机米 阅读(170) 评论(0) 推荐(0) 编辑

geopandas 生成 shp 文件
摘要:生成 shp 文件 ss = [] for il in C.allsegs[1:5]: ss.append(geometry.MultiLineString([i.tolist() for i in il if len(i.tolist()) > 1])) cq = geopandas.GeoDat 阅读全文

posted @ 2022-08-26 14:31 闹不机米 阅读(593) 评论(0) 推荐(0) 编辑

python 安装geopandas
摘要:1. 使用说明,如何操作 shp 文件绘图 import geopandas as gpd import matplotlib.pyplot as plt plt.rcParams["font.family"] = "SimHei" # 设置全局中文字体为黑体 # 读入中国领土面数据 china = 阅读全文

posted @ 2022-08-01 13:56 闹不机米 阅读(376) 评论(0) 推荐(0) 编辑

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8
点击右上角即可分享
微信分享提示