Closed yoliva closed 1 year ago
Sorry, I've not been keeping track of these issues. You're correct, we're parsing it wrong. According to the spec:
The coordinate separator is a comma and the tuple separator is a whitespace
The parser is trying to be flexible and skipping whitespace between points, however, this is incorrect when the altitude part is optional. I'll update it and add some tests over the weekend.
Thanks for reporting it
That's fixed now in the latest release, thanks again for reporting it.
Awesome @samcragg! We will update our references. Thanks!
Hi! We are getting an odd behavior while parsing files with leading commas and without altitude values.
current behavior: What the parser is doing is returning a geometry with a single vector taking
(firstPoint.Latitude, firstPoint.longitude, secondPointLatitude)
and throwing away the rest of the coordinates. We use the files on google earth and seems to be working fine as we can see in the attached imageexpected behavior: we would expect to receive a parser error or maybe just ignore the "," characters as google earth does.
File example:
result of loading the file on google earth:
Please let me know if you need any extra details from my side. Thanks!!