6.7. copro.data.neighboring_polys

copro.data.neighboring_polys(config, extent_gdf, identifier='watprovID')[source]

For each polygon, determines its neighboring polygons. As result, a (n x n) look-up dataframe is obtained containing, where n is number of polygons in extent_gdf.

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

  • extent_gdf (geo-dataframe) – geo-dataframe containing the selected polygons.

  • identifier (str, optional) – column name in extent_gdf to be used to identify neighbors. Defaults to ‘watprovID’.

Returns

look-up dataframe containing True/False statement per polygon for all other polygons.

Return type

dataframe