# Optimizations and fixes

* drops identifier handling on all edit-forms (identifier editing has been disabled on the frontend for a while now)
* updates test cases
* updates form caption for checking and recording action (less intimidating)
* optimizes district column width
* fixes bug on frontend parcel fetching on detail view
* adds extended tooltip for title column on index tables
* retraslates 'Law' to 'Rechtsgrundlage'
This commit is contained in:
2024-02-08 07:31:19 +01:00
parent cf90f9710c
commit 4fc15f6a9d
20 changed files with 49 additions and 43 deletions

View File

@@ -370,6 +370,9 @@ class Geometry(BaseResource):
Returns:
complexity_factor (float): The estimated complexity
"""
if self.geom.empty:
return 0
geom_envelope = self.geom.envelope
diff = geom_envelope - self.geom
complexity_factor = 1 - self.geom.area / diff.area