Skip to content

Commit

Permalink
Merge branch 'fix/70-layer-surface-not-calculated-correctly' of https…
Browse files Browse the repository at this point in the history
…://github.com/Deltares/Koswat into fix/70-layer-surface-not-calculated-correctly
  • Loading branch information
Carsopre committed Jan 12, 2023
2 parents a7c9057 + 0a2edc0 commit 6b188f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion koswat/core/geometries/calc_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ def order_geometry_points(dike_polygon: geometry.Polygon) -> geometry.Polygon:
geometry.Polygon: Normalized polygon.
"""
if isinstance(dike_polygon.boundary, geometry.MultiLineString):
logging.warning("Polygon with 'multi line', most likely due to a geometry split in two parts. Ordering of points is not supported, some calculation errors might occur as a consequence of this.")
logging.warning(
"Polygon with 'multi line', most likely due to a geometry split in two parts. Ordering of points is not supported, some calculation errors might occur as a consequence of this."
)
return dike_polygon
_x, _y = tuple(map(list, dike_polygon.boundary.coords.xy))
# remove last point as it's repeated.
Expand Down

0 comments on commit 6b188f7

Please sign in to comment.