text improvement

This commit is contained in:
Theophile Terraz committed 2024-08-05 09:55:12 +02:00
1 parent 5e018fc8f0
commit d32baa61a1
4 files changed
+10 -9

No files matched your search

+3 -2
View File
@@ -431,8 +431,9 @@ class ProfileXYZ(Profile, SQLSubModel):
area = 0.0
for line in lines:
poly = geometry.Polygon(line)
area += poly.area
if len(line.coords) > 2:
poly = geometry.Polygon(line)
area += poly.area
return area
return poly.area