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

Additional coordinate stability considerations #898

Merged
merged 2 commits into from
Nov 2, 2023
Merged

Conversation

abyrd
Copy link
Member

@abyrd abyrd commented Oct 19, 2023

This builds on #897. The coordinate stability considerations addressed there also apply to building grids around sets of points, including destination opportunities and street vertices in transportation networks. Due to conversion back and forth from WGS84 to web Mercator, it is possible hat a grid made to be completely tight around the set of points may not actually contain some of the points.

This PR adds WebMercatorExtents.forBufferedWgsEnvelope which complements forTrimmedWgsEnvelope to handle this case.

This PR is a draft until the basic WGS-Mercator PR is merged, at which point this PR's base can be changed to dev.

This complements forTrimmedWgsEnvelope to handle numerical instability
or imprecision in a different case: tight bounds around sets of points
that must fall into the resulting grid.
Base automatically changed from wgs-mercator-minimal to dev October 27, 2023 12:36
@abyrd abyrd marked this pull request as ready for review October 27, 2023 16:10
Copy link
Member

@trevorgerhardt trevorgerhardt left a comment

Choose a reason for hiding this comment

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

The ways this PR is using forBufferedWgsEnvelope appear correct to me. 👍

@abyrd abyrd merged commit 862ae15 into dev Nov 2, 2023
3 checks passed
@abyrd abyrd deleted the wgs-mercator-buffer branch November 2, 2023 06:05
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