Skip to main content

read_refinement_areas

read_refinement_areas(source, layer=None, *, level, crs=None)

Read refinement areas from a GIS layer.

Parameters

Name Type Description Default
source (str, path - like or GeoDataFrame) A GeoPackage or shapefile, or an object with geometry and crs attributes such as a GeoDataFrame. required
layer str Layer name; required when the file has more than one layer. None
level str or int Name of the column with the refinement level of each polygon, or one level for all polygons. required
crs pyproj.CRS or str or int CRS of a layer that has none (see :func:read_domain). None

Returns

Name Type Description
Areas The polygons with their levels.

Raises

Name Type Description
InputError As :func:read_domain, and if the level column is missing or a level is missing, not an integer or below 1; the message names the feature.