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

fix: handling of a single point coordinate in a MultiPoint geometry #210

Merged
merged 2 commits into from
Oct 19, 2023

Conversation

mattijn
Copy link
Owner

@mattijn mattijn commented Oct 19, 2023

fix: #209.

While resolving the coordinates there is an intermediate data object that come back as a list of coordinates. Take index 0 if it is a Point and else take all. Before it took index 0 if the length of the number of coordinates was 1. This was false for a single coordinate in a multipoint geometry, which expects a list as output.

@github-actions
Copy link
Contributor

Benchmark result

benchmark
These PR changes are benchmarked against three files, compared with PyPi's latest release and the repository's main branch.

@mattijn mattijn merged commit 00d8fd8 into main Oct 19, 2023
11 checks passed
@mattijn
Copy link
Owner Author

mattijn commented Oct 19, 2023

Tests passing, merging. Thanks for reporting @kchebani!

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

Successfully merging this pull request may close these issues.

Coordinates not reported correctly on Multipoint with only one point
1 participant