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

Use const generic for dimension in geometry arrays to support Z, M, ZM data #663

Merged
merged 9 commits into from
Jul 19, 2024

Conversation

kylebarron
Copy link
Member

@kylebarron kylebarron commented Jul 19, 2024

This is a massive refactor for #662

Change list

  • Add const generic const D: usize on all geometry arrays. This allows to represent higher-dimension geodata in geoarrow-rs
  • Essentially all algorithms are still only implemented on the 2D representation
  • geo traits are still 2d only

Future work: test Arrow interop to ensure that xyz/xym/xyzm metadata is preserved. Ensure that on export we're setting the field correctly for 3d data.

@kylebarron kylebarron marked this pull request as ready for review July 19, 2024 20:18
@kylebarron kylebarron enabled auto-merge (squash) July 19, 2024 20:24
@kylebarron kylebarron merged commit a53cf0b into main Jul 19, 2024
21 checks passed
@kylebarron kylebarron deleted the kyle/const-generic-geometry-array branch July 19, 2024 20:29
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