我有点shapefile和多边形shapefile。我想找出每个多边形的最高点。我做了一个交叉点来找出哪些点属于每个多边形: import geopandas as gpd
poly = gpd.GeoDataFrame.from_file(polygonSHP)points_within_poly = g
但我所发现的是,如果我用“内”或“包含”来组合,我会得到一组奇怪的点,这些点都是以感兴趣区域的最上层和低纬度为界的,但经度的范围都很大。pmnm # this is the region of the ocean I'm interested in# sjointo find geopoints that are "within" pmnm
pmnm_points = geopandas.sjoin(geop
我有一个连续13个多边形的shapefile,以及一个包含约33K个地址的地址列表,这些地址来自与多边形相同的一般区域。我使用以下代码遍历shape_dict中的所有键和从地址创建的所有点,并更新一个列表,该列表随后成为polygon_contains_dict中每个键的值: for key, value in shape_dict.items