小编leo*_*ole的帖子

关于 read_file() 的 Geopandas 警告

我在使用 geopanda 的 read_file() 读取 geojson 时收到以下警告:

...geodataframe.py:422: RuntimeWarning: Sequential read of iterator was interrupted. Resetting iterator. This can negatively impact the performance.
  for feature in features_lst:
Run Code Online (Sandbox Code Playgroud)

这是我使用的代码示例:

crime_gdf = gpd.read_file('datasets/crimes.geojson', bbox=bbox)
Run Code Online (Sandbox Code Playgroud)

crimes.geojson 是一个包含大量点的文件,每个点都有一个“犯罪类型”

bbox 定义边界

代码按预期运行,但我不明白该警告。

编辑

我将 geojson 转换为feather,并收到相同的警告。

python geopandas

8
推荐指数
2
解决办法
1769
查看次数

标签 统计

geopandas ×1

python ×1