From 6b373ace854f1950e52e1c3b333a1903ee3085f9 Mon Sep 17 00:00:00 2001 From: AtelierLibre <36126654+AtelierLibre@users.noreply.github.com> Date: Fri, 5 Jan 2024 17:30:26 +0000 Subject: [PATCH] fix removal of inner_polygons from outer_polygons --- osmnx/features.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osmnx/features.py b/osmnx/features.py index a177aadd0..583acc888 100644 --- a/osmnx/features.py +++ b/osmnx/features.py @@ -892,7 +892,7 @@ def _subtract_inner_polygons_from_outer_polygons(element, outer_polygons, inner_ for inner_polygon in inner_polygons: if inner_polygon.within(outer_polygon): try: - outer_polygon_diff = outer_polygon.difference(inner_polygon) + outer_polygon_diff = outer_polygon_diff.difference(inner_polygon) except TopologicalError: # pragma: no cover utils.log( f"relation https://www.openstreetmap.org/relation/{element['id']} "