首页 > 解决方案 > 使用 geopandas 绘制德国各州

问题描述

我需要使用 geopandas 绘制德国各州。

我在哪里可以找到.shp具有州/城市边界的德国文件?

标签: pythonpython-3.xpandasgeopandas

解决方案


欢迎来到 Stackoverflow。

如果你输入谷歌:“german states shapefile”,你会得到这样的结果:

https://www.igismap.com/download-germany-shapefile-free-boundary-line-polygon-shapefile/

下载 shapefile 后,您可以像这样阅读它:

import geopandas as gpd

gdf = gpd.read_file("path/to/shapefile/shapefile.shp")

推荐阅读