reVX.least_cost_xmission.least_cost_xmission.reinforcement_region_mapper

reinforcement_region_mapper(regions, region_identifier_column)[source]

Generate a function to map points to a reinforcement 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 reinforcement regions. This table must have a region_identifier_column column which uniquely identifies the region, as well as a geometry for each region.