7.6. copro.conflict.get_poly_geometry

copro.conflict.get_poly_geometry(extent_gdf, config)[source]

Extracts geometry information for each polygon from geodataframe and saves to list. The geometry column in geodataframe must be named ‘geometry’.

Parameters
  • extent_gdf (geo-dataframe) – geo-dataframe containing one or more polygons with geometry information.

  • config (ConfigParser-object) – object containing the parsed configuration-settings of the model.

Raises

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

Returns

list containing the geometry information extracted from geo-dataframe for each polygon used in the model.

Return type

list