revrt.utilities.base.region_mapper#
- region_mapper(regions, region_identifier_column)[source]#
Generate a function to map points to a region
The returned mapping function maps a point to a unique value from the region_identifier_column column in the input GeoDataFrame.
- Parameters:
regions (
geopandas.GeoDataFrame) – GeoDataFrame defining the regions. This table must have a region_identifier_column column which uniquely identifies the region, as well as a geometry for each region.