reVX.least_cost_xmission.least_cost_xmission.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 GeoPackage.

Parameters:

regions (gpd.GeoPackage) – GeoPackage 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.