Geopandas readfile zip 给出了 fiona.errors.DriverError:not识别为支持的文件格式

问题描述

我尝试使用 geopandas 读取文件。我想阅读一个 zip 文件。 zip 文件与请求一起发送,类型为:django.core.files.uploadedfile.InMemoryUploadedFile

我的代码如下:

fileobject = request.FILES['map']
gdf = geopandas.read_file(fileobject)

当我尝试 read_file 时出现此错误

fiona.errors.DriverError: '/vsimem/00397ff2afaa42b28e7bea85d630588d/00397ff2afaa42b28e7bea85d630588d' not recognized as a supported file format.

iam 使用以下版本 菲奥娜==1.8.18 geopandas==0.8.2,有人可以帮忙吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)