Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle MultiLineString with empty coordinates #164

Merged
merged 3 commits into from
Dec 15, 2021

Conversation

axelson
Copy link
Contributor

@axelson axelson commented Sep 10, 2021

Fixes #163

multi_line_string = Geo.WKB.decode!("010500000001000000010200000000000000")
assert multi_line_string.coordinates == [[]]
assert multi_line_string.properties == %{}
assert multi_line_string.srid == nil
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we add a test to make sure the SRID is passed through too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. Just added it in dfe665f

@bryanjos
Copy link
Contributor

Sorry I'm just getting to this. And thanks!

@bryanjos bryanjos merged commit dd22e18 into felt:master Dec 15, 2021
@axelson axelson deleted the handle-empty-multi-line-string branch December 15, 2021 17:31
@axelson
Copy link
Contributor Author

axelson commented Dec 15, 2021

Thank you for merging this! And also for maintaining the library!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Unable to decode WKB of MultiLineString with no coordinates
3 participants