# 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user