geost.spatial.find_area_labels#
- geost.spatial.find_area_labels(point_geodataframe: GeoDataFrame, polygon_geodataframe: GeoDataFrame, column_name: str) 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) – Label of the polygon geometries to use for assigning to the queried points.
- Returns:
Series with labels from the polygon geometries for each point.
- Return type:
pandas.Series