find_polygon_at_point¶
- find_polygon_at_point(gdf, points)[source]¶
For each point in
pointslook up the index of a containing polygon in a GeoDataFrame, or-1if none is found.- Parameters:
gdf (
GeoDataFrame) – a GeoDataFrame whose geometry is queried againstpoints (
ndarray) – an(N, 2)coordinate array.
- Return type:
- Returns:
an integer
(N,)array