find_slithers#
- caf.space.zone_correspondence.find_slithers(spatial_correspondence, zone_names, tolerance)[source]#
Find overlap areas between zones which are very small slithers.
Finds slithers and filters them out of the spatial zone correspondence GeoDataFrame, and returns the filtered zone correspondence as well as the GeoDataFrame wit only the slithers.
- Parameters:
spatial_correspondence (GeoDataFrame) – Spatial zone correspondence between zone 1 and zone 2 produced with spatial_zone_correspondence
zone_names (List[str, str]) – List of the zone names that the spatial correspondence was performed between
tolerance (float) – User-defined tolerance for filtering out slithers, must be a float between 0 and 1, recommended value is 0.98
- Returns:
slithers, GeoDataFrame with all the small zone overlaps, and no_slithers, the zone correspondence GeoDataFrame with these zones filtered out. slithers isn’t usually required but is returned for testing.
- Return type:
GeoDataFrame, GeoDataFrame