【发布时间】:2022-06-12 18:56:09
【问题描述】:
我有 geoDataFrame:
df = gpd.GeoDataFrame([[0, 'A', Point(10,12)],
[1, 'B', Point(14,8)],
[2, 'C', Point(100,2)],
[3, 'D' ,Point(20,10)]],
columns=['ID','Value','geometry'])
是否可以在半径范围内找到点,例如每个点为 10,并将它们的“值”和“几何”添加到 GeoDataFrame,这样输出看起来像:
['ID','Value','geometry','value_of_point_in_range_1','geometry_of_point_in_range_1','value_of_point_in_range_2','geometry_of_point_in_range_2' etc.]
在我为每个寻找最近的邻居之前,然后检查它是否在范围内,但我必须找到半径中的所有点并且不知道我应该使用什么工具。
【问题讨论】:
标签: python-3.x pandas geopandas shapely