Skip to content

Commit

Permalink
update: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ozekik committed Apr 2, 2024
1 parent b1929c6 commit 3c2cc26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plateaukit/formats/citygml/parsers/geometry_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ def extract_chunked_poslists(self, root: etree._Element):
parsed = []

for result in root.iterfind(path, nsmap):
poslist = map(float, result.text.split(" "))
# TODO: Handle cases where result.text is None
text = result.text.strip()
poslist = map(float, text.split(" "))

chunked = list(utils.chunker(poslist, 3))

Expand Down

0 comments on commit 3c2cc26

Please sign in to comment.