Skip to content

Remove const generic from coord buffers#845

Merged
kylebarron merged 9 commits into
mainfrom
kyle/remove-const-generic-coords
Nov 14, 2024
Merged

Remove const generic from coord buffers#845
kylebarron merged 9 commits into
mainfrom
kyle/remove-const-generic-coords

Conversation

@kylebarron

@kylebarron kylebarron commented Nov 2, 2024

Copy link
Copy Markdown
Member

In discussion with Dewey around this PR #844, I realized that regardless of whether we remove the underlying CoordBuffer enum, we can remove the const generic on the CoordBuffer to determine its physical dimension. Even if this is slightly slower, I think it's very important for maintainability.

I realize now that this is what b4l was trying to argue for in #822, but I couldn't see what he meant there without an example.

For #822, for #801

@kylebarron
kylebarron marked this pull request as ready for review November 14, 2024 22:32
@kylebarron kylebarron changed the title wip: remove const generic from coord buffers Remove const generic from coord buffers Nov 14, 2024
@kylebarron
kylebarron enabled auto-merge (squash) November 14, 2024 23:53
@kylebarron
kylebarron merged commit b732d40 into main Nov 14, 2024
@kylebarron
kylebarron deleted the kyle/remove-const-generic-coords branch November 14, 2024 23:59
kylebarron added a commit that referenced this pull request Nov 16, 2024
Removes the `const D: usize` generic on each array type, delegating the
coordinate dimension to the coordinate buffer.

Closes #822, for
#801. Builds on
#845
kylebarron added a commit to datafusion-contrib/geodatafusion that referenced this pull request Sep 10, 2025
Removes the `const D: usize` generic on each array type, delegating the
coordinate dimension to the coordinate buffer.

Closes geoarrow/geoarrow-rs#822, for
geoarrow/geoarrow-rs#801. Builds on
geoarrow/geoarrow-rs#845
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