mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
text improvement
This commit is contained in:
1 parent
5e018fc8f0
commit
d32baa61a1
4 files changed
+10
-9
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user