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

s2.latLngToKey is not publicly accessible #1

Closed
mentin opened this issue Aug 27, 2019 · 7 comments
Closed

s2.latLngToKey is not publicly accessible #1

mentin opened this issue Aug 27, 2019 · 7 comments

Comments

@mentin
Copy link

mentin commented Aug 27, 2019

I can run SELECT jslibs.h3.ST_H3(st_geogpoint(1,2),7),
but SELECT jslibs.s2.latLngToKey(1,2,3) gives me

Access Denied: Routine jslibs:s2.latLngToKey: The user ...@... does not have permission to invoke routine jslibs.s2.latLngToKey.

@jatorre
Copy link
Member

jatorre commented Oct 11, 2019

Yep, sorry did not have time to bundle correctly the S2 library, is there, but not bundled

@mentin
Copy link
Author

mentin commented Nov 5, 2019

Permissions seems to be OK now, but I'm now getting

SELECT jslibs.s2.latLngToKey(1,2,3)

ReferenceError: window is not defined at gs://bigquery-jslibs/s2geometry.js line 594, columns 52-53

@jatorre
Copy link
Member

jatorre commented Nov 5, 2019 via email

@JacobHayes
Copy link

JacobHayes commented Jan 30, 2020

Hi @jatorre have you had a chance to take a look at this? If not, could you point me to what I'd need to do? I'd be happy to PR it. It's obviously due to this line referencing an undefined window in the false case of the condition, but not sure exactly what it should reference instead.

@jatorre
Copy link
Member

jatorre commented Feb 3, 2020 via email

@XavierLavenir
Copy link

Are there any plans to implement this soon? Would be really useful

@SMazu SMazu mentioned this issue Mar 23, 2020
@jatorre
Copy link
Member

jatorre commented Mar 29, 2020

It should be possible now thanks to @francois-baptiste and there are a few other options

@jatorre jatorre closed this as completed Mar 29, 2020
jatorre pushed a commit that referenced this issue Jan 12, 2021
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

No branches or pull requests

4 participants