maup.assign module

exception maup.assign.AssigmentWarning[source]

Bases: UserWarning

Warning raised when some source geometries are not assigned to any target.

maup.assign.assign(sources, targets)[source]

Assign source geometries to targets. A source is assigned to the target that covers it, or, if no target covers the entire source, the target that covers the most of its area.

maup.assign.assign_by_area(sources, targets)[source]
maup.assign.assign_by_covering(sources, targets)[source]
maup.assign.assign_to_max(weights)[source]
maup.assign.drop_source_label(index)[source]