ErikNixdorf / sbat

The Repo for the Surface Water Balance Analysis Tool
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

fix Multipoint Error #22

Closed ErikNixdorf closed 1 year ago

ErikNixdorf commented 1 year ago

@MarcoHannemann Do my changes fix your problem?

MarcoHannemann commented 1 year ago

@ErikNixdorf Yes they do; did you check my suggestion in #11?

What about

section_line = LineString(river_pnts.geometry.to_list())

instead of

section_line = LineString(MultiPoint(river_pnts.geometry.to_list()).geoms)

Does this yield the same result for you? If yes I would prefer the first option as it is shorter and cleaner.

MarcoHannemann commented 1 year ago

In fact this even shorter version should also work if I'm correct:

section_line = LineString(river_pnts.geometry)