7.4. copro.conflict.calc_conflicts_nb¶
- copro.conflict.calc_conflicts_nb(i_poly, neighboring_matrix, conflicts_per_poly)[source]¶
Determines whether in the neighbouring polygons of a polygon i_poly conflict took place. If so, a value 1 is returned, otherwise 0.
- Parameters
i_poly (int) – ID number of polygon under consideration.
neighboring_matrix (dataframe) – look-up dataframe listing all neighboring polygons.
conflicts_per_poly (dataframe) – dataframe with conflict informatoin per polygon.
- Returns
1 is conflict took place in neighboring polygon, 0 if not.
- Return type
int