# Wartungskommando Optimization

* extends filtering for recalculatable geometries to records without started calculation at any point (parcel_update_start is null)
* catches exceptions on geometries which could not be recalculated properly, adds them to output for further analysis
* simplifies complexity factor calculation
This commit is contained in:
2024-10-25 19:19:08 +02:00
parent 62e1b046c3
commit a6e43b044b
2 changed files with 18 additions and 7 deletions

View File

@@ -366,11 +366,10 @@ class Geometry(BaseResource):
diff = geom_envelope - self.geom
if diff.area == 0:
ratio = 1
complexity_factor = 1
else:
ratio = self.geom.area / diff.area
complexity_factor = self.geom.area / diff.area
complexity_factor = 1 - ratio
return complexity_factor