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

unify Densify trait (adds support for Geodesic, Rhumb) #1231

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

michaelkirk
Copy link
Member

  • 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.

Supersedes #1208
Part of #1181

Densify is now generic, and implemented for anything that implements Distance<Point, Point> and Interpolate<Point>.

Specifically that means we continue to support Euclidean and Haversine densification, and now additionally support Geodesic and Rhumb.

@michaelkirk michaelkirk changed the title mkirk/unify densify unify Densify trait (adds support for Geodesic, Rhumb) Oct 18, 2024
@michaelkirk
Copy link
Member Author

Pushed up some missing docs - sorry 🙇

Just like #1228, but for Densify rather than Length.

This enables Geodesic, Haversine, Euclidean, and Rhumb Densification.

This required implementing InterpolatePoint for Euclidean.

Adjacent work:

deprecated legacy DensifyHaversine
linestring_segment is now implemented in terms of the new Densify

NOTE: linestring_segment would be a good future candidate for
a similar unification across all the metric spaces
@michaelkirk michaelkirk added this pull request to the merge queue Oct 22, 2024
Merged via the queue into main with commit cf37789 Oct 22, 2024
15 checks passed
@michaelkirk michaelkirk deleted the mkirk/unify-densify branch October 22, 2024 17:51
@michaelkirk michaelkirk mentioned this pull request Oct 23, 2024
2 tasks
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.

2 participants