geost.spatial.find_area_labels#

geost.spatial.find_area_labels(point_geodataframe: GeoDataFrame, polygon_geodataframe: GeoDataFrame, column_name: str | Iterable) Series[source]#

Function to find labels associated with polygon geometries for a series of queried point geometries. Basically a spatial join between the point and polygon dataframe.

Parameters:
  • point_geodataframe (gpd.GeoDataFrame) – Geodataframe with point geometries for which you want to find in which polygon geometries they are located.

  • polygon_geodataframe (gpd.GeoDataFrame) – Geodataframe with polygon geometries

  • column_name (str | Iterable) – Label of the polygon geometries to use for assigning to the queried points. Given as a string or iterable of strings in case you’d like to find multiple labels.

Returns:

Series with labels from the polygon geometries for each point.

Return type:

pandas.Series