7.7.5. copro.conflict.get_poly_ID

copro.conflict.get_poly_ID(extent_gdf)[source]

Extracts and returns a list with unique identifiers for each polygon used in the model. The identifiers are currently limited to ‘watprovID’.

Parameters

extent_gdf (geo-dataframe) – geo-dataframe containing one or more polygons.

Raises

AssertionError – error raised if length of output list does not match length of input geo-dataframe.

Returns

list containing a unique identifier extracted from geo-dataframe for each polygon used in the model.

Return type

list