Is the S2 library based on the WGS-84 coordinate system? #311
-
I looked at the official documents, but I didn't find any instructions about WGS-84. I want to confirm it. |
Beta Was this translation helpful? Give feedback.
Answered by
smcallis
Apr 14, 2023
Replies: 3 comments 4 replies
-
No, everything is based on a sphere. |
Beta Was this translation helpful? Give feedback.
0 replies
-
s2earth radius is the mean radius which averages the difference between
polar and equatorial radius. It's 6,371.0088 km which is the same as the
WGS-84 mean radius.
…On Thu, Apr 13, 2023 at 6:43 AM Jesse Rosenstock ***@***.***> wrote:
No, everything is based on a sphere. s2earth.h has a radius, but I'm not
sure how it compares to the equivalent radius of the WGS 84 spheroid.
—
Reply to this email directly, view it on GitHub
<#311 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGEMKXDUTC3SLFNXEEZUDDXA7YIZANCNFSM6AAAAAAW454W6Q>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
3 replies
-
Those are implemented based on a library called STLib which is built on top
of S2 but isn't open sourced (yet).
…On Thu, Apr 13, 2023 at 9:36 PM Liqf ***@***.***> wrote:
last question:Is the geography_functions in bigquery implemented based on
the S2 library?
https://cloud.google.com/bigquery/docs/reference/standard-sql/geography_functions
—
Reply to this email directly, view it on GitHub
<#311 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGEMKQR2TA4XDLT54SYYODXBDA3HANCNFSM6AAAAAAW454W6Q>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No in general no because there's no ellipsoidal correction, so distances and areas won't be the same. The error is small but noticeable.