skip stuff if processupdates is no geometries were affected

This commit is contained in:
Laura Klünder 2017-12-23 02:38:18 +01:00
parent d51bc684bb
commit ff5826d8c2
4 changed files with 61 additions and 25 deletions

View file

@ -33,6 +33,10 @@ class GeometryChangeTracker:
self._unary_unions[level_id] = union
return union
@property
def is_empty(self):
return not self._geometries_by_level
@property
def area(self):
return sum((self._get_unary_union(level_id).area