This commit is contained in:
Theophile Terraz committed 2024-08-21 14:21:02 +02:00
1 parent 5d3111df37
commit ec5b9571d3
1 file changed
+6
+6
View File
@@ -491,6 +491,12 @@ class ProfileXYZ(Profile, SQLSubModel):
lines.append(geometry.LineString(line))
line = []
if zz[self.number_points-1] < z:
line.append([station[self.number_points-1], z])
if len(line) > 2:
lines.append(geometry.LineString(line))
line = []
return lines
def max_water_depth(self, z):