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 GeometryArray and MixedArray constructors for separated coordinates #941

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

kylebarron
Copy link
Member

@kylebarron kylebarron commented Dec 12, 2024

While exploring #939, I realized that it's easy to create an invalid GeometryArray or MixedArray (or one that panics in new()) because Default::default() chooses the default coord type. So if you're using the separated coord type, you'll have a mix of user-provided arrays that use separated coords, but the Default::default generated arrays will have interleaved coords.

@kylebarron kylebarron marked this pull request as ready for review December 12, 2024 16:22
@kylebarron kylebarron changed the title Improved GeometryArray and MixedArray constructors Fix GeometryArray and MixedArray constructors for separated coordinates Dec 12, 2024
@kylebarron kylebarron enabled auto-merge (squash) December 12, 2024 16:28
@kylebarron kylebarron merged commit a726afd into main Dec 12, 2024
22 checks passed
@kylebarron kylebarron deleted the kyle/geometry-array-constructor branch December 12, 2024 16:30
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.

1 participant