I have two GeoDataFrames. One contains Points, another contains Polygons.
I need to get all Points that are inside any Polygon from GeoDataFrame.
I tried iterate through all Polygons and check if Point inside this polygon or not. This solution works but it is very slow.
I wonder if there is another way to solve this task.
edit: My solution looks like this:
for i in range(len(Poly_gdf.index)):
inter = Points_gdf[Points_gdf.intersects(Poly_gdf.loc[i,'geometry'])]
if not inter.empty:
for i in inter['geometry'].values:
points.append(i)