Python OSMNX包:OSMNX.footprints不工作

Python OSMNX包:OSMNX.footprints不工作,python,osmnx,Python,Osmnx,下面是一段代码,我看到它对其他人正常工作,我尝试导入建筑示意图 import osmnx #osmnx.config(log_console=True, use_cache=True) import matplotlib.pyplot as plt %matplotlib inline point = (40.719464, -73.993426) distance = 600 gdf = osmnx.footprints.footprints_from_point(point, distanc

下面是一段代码,我看到它对其他人正常工作,我尝试导入建筑示意图

import osmnx
#osmnx.config(log_console=True, use_cache=True)
import matplotlib.pyplot as plt
%matplotlib inline
point = (40.719464, -73.993426)
distance = 600
gdf = osmnx.footprints.footprints_from_point(point, distance, footprint_type='building', retain_invalid=False)
我不明白我得到的错误: 我试着处理函数和数据类型的输入。在使用来自多边形的足迹时,我遇到了类似的问题

显示了以下错误

> IllegalArgumentException: Argument must be Polygonal or LinearRing
> PredicateError: Failed to evaluate <_FuncPtr object at 0x11865a7a0>
>IllegalArgumentException:参数必须是多边形或线性
>PredicateError:计算失败

此代码段工作正常:

将osmnx作为ox导入
ox.config(log\u console=True,use\u cache=True)
点=(40.719464,-73.993426)
距离=600
gdf=ox.footprints\u from\u point(点、距离、footprint\u type='building',retain\u invalid=False)
gdf.shape#(2333117)

如果您仍然遇到问题,请尝试按照说明重新安装OSMnx。

应该是其他问题,因为代码在我的环境中运行良好