maup.adjacencies module

exception maup.adjacencies.IslandWarning[source]

Bases: UserWarning

exception maup.adjacencies.OverlapWarning[source]

Bases: UserWarning

maup.adjacencies.adjacencies(geometries, adjacency_type='rook', output_type='geoseries', *, warn_for_overlaps=True, warn_for_islands=True)[source]

Returns adjacencies between geometries. The default return type is a GeoSeries with a MultiIndex, whose (i, j)th entry is the pairwise intersection between geometry i and geometry j. We ensure that i < j always holds, so that any adjacency is represented just once in the series. If output_type == “geodataframe”, the return type is a range-indexed GeoDataFrame with a “neighbors” column containing the pair (i,j) for the geometry consisting of the intersection between geometry i and geometry j.

maup.adjacencies.iter_adjacencies(geometries)[source]