Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

set clipCircle precision to 2 degrees #282

Merged
merged 4 commits into from
Mar 12, 2024
Merged

Conversation

Fil
Copy link
Member

@Fil Fil commented Apr 28, 2023

complements #281
closes #270

Fil added 3 commits April 27, 2023 17:38
Results in 180 control points instead of 60 (⨉3). The error is quadratic with the precision, with the worst case (for a parallel) being at latitude 45°. Under this new setting, the maximum error is now ~484m, vs. 4.365km with precision 6°.
https://observablehq.com/@d3/geocircle-error
following #281

(note that for clipCircle the precision is not modifiable by the user)

Manually rechecked each of the tests that are (slightly) modified as a consequence
@Fil Fil requested a review from mbostock April 28, 2023 21:24
@Fil Fil mentioned this pull request Apr 28, 2023
2 tasks
@Fil Fil changed the title default geoCircle precision to 2 degrees default clipCircle precision to 2 degrees Apr 28, 2023
@Fil Fil changed the title default clipCircle precision to 2 degrees set clipCircle precision to 2 degrees Apr 28, 2023
Base automatically changed from fil/default-circle-precision to main March 12, 2024 21:57
@mbostock mbostock merged commit dbb42ba into main Mar 12, 2024
1 check passed
@mbostock mbostock deleted the fil/clipCircle-precision branch March 12, 2024 22:00
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

clipCircle's precision is too low
2 participants