skip stuff if processupdates is no geometries were affected
This commit is contained in:
parent
d51bc684bb
commit
ff5826d8c2
4 changed files with 61 additions and 25 deletions
4
src/c3nav/mapdata/utils/cache/changes.py
vendored
4
src/c3nav/mapdata/utils/cache/changes.py
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue