相关疑难解决方法(0)

Python 中的多层 .gdb 文件?

我试图从一些.GDB文件(文件夹?)看这里:。

我使用 GeoPandas 并执行以下操作:

# file from local path
mallard = gpd.read_file('./bird-species/E00039600_mallard.gdb/')
# geopandas included map, filtered to just this hemisphere
world = gpd.read_file(gpd.datasets.get_path('naturalearth_lowres'))
westhem = world[(world['continent'] == 'North America') | 
                (world['continent'] == 'South America')]

# making sure the coordinates line up:
mallard = mallard.to_crs(world.crs)

#establishing figure axes
base = westhem.plot(color='white', edgecolor='black',figsize=(11,11))

# cmap because I'd LIKE the multiple layers to exist
bbw_duck.plot(ax=base, cmap = 'Reds');
Run Code Online (Sandbox Code Playgroud)

输出如下所示:

糟糕的地图 - 一种颜色

有没有办法在 GeoPandas 或 Python(Jupyter Notebook)中查看所有层?

python gis geopandas

12
推荐指数
1
解决办法
4006
查看次数

标签 统计

geopandas ×1

gis ×1

python ×1