fallback no longer needed

This commit is contained in:
Laura Klünder 2017-11-19 23:19:24 +01:00
parent d57c2dfcf9
commit 1c831030a2

View file

@ -334,14 +334,7 @@ class GeometryChangeTracker:
self._unary_unions = {}
def _get_unary_union(self, level_id):
try:
union = self._unary_unions.get(level_id)
except AttributeError:
# fallback if there are still old pickled updates in the queue
self._unary_unions = {}
union = None
union = self._unary_unions.get(level_id)
if union is None:
union = unary_union(self._geometries_by_level[level_id])
self._unary_unions[level_id] = union