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

Simplify Wkt data structure #110

Merged
merged 1 commit into from
Jul 17, 2024
Merged

Simplify Wkt data structure #110

merged 1 commit into from
Jul 17, 2024

Conversation

michaelkirk
Copy link
Member

@michaelkirk michaelkirk commented Sep 15, 2023

  • I agree to follow the project's code of conduct.
  • I added an entry to CHANGES.md if knowledge of this change could be valuable to users.
  • I ran cargo fmt

This is based on #109, so review that first. Merged!

It's a large breaking change, so I'd appreciate getting at least a couple opinions.

@@ -142,7 +141,7 @@ impl<T> WktFloat for T where T: WktNum + Float {}

#[derive(Clone, Debug, PartialEq)]
/// All supported WKT geometry [`types`]
pub enum Geometry<T>
Copy link
Member Author

@michaelkirk michaelkirk Sep 16, 2023

Choose a reason for hiding this comment

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

The crux of the change is this and deleting the old Wkt struct

This is a large breaking change to simplify the Wkt data structure.

Wkt had a single field - `item` of type `Geometry`. So everything about
a Wkt was determined by its item. In effect, Wkt was serving no purpose.
So I replaced Wkt with it's inner Geometry.
@michaelkirk
Copy link
Member Author

This sat here a long time and I forgot about it. I've rebased! Can I get another review?

@michaelkirk michaelkirk merged commit 077c82c into main Jul 17, 2024
1 check passed
@michaelkirk michaelkirk deleted the mkirk/rm-wkt-item branch July 17, 2024 19:47
@michaelkirk
Copy link
Member Author

Well, I got an approval a long time ago and it really seems like no one cares much, so I'm going to merge this before it goes stale again.

@kylebarron
Copy link
Member

Ah the luck of you merging this right when I was working on ZM support 🥲

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.

3 participants