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

Crosses? #15

Closed
RoboDonut opened this issue Jul 15, 2020 · 8 comments
Closed

Crosses? #15

RoboDonut opened this issue Jul 15, 2020 · 8 comments

Comments

@RoboDonut
Copy link

Any way to get Turf Crosses function in?

@jatorre
Copy link
Member

jatorre commented Jul 16, 2020

Do you mean this one?

https://turfjs.org/docs/#booleanCrosses

@RoboDonut
Copy link
Author

Yup. That’s the one I need!

@RoboDonut
Copy link
Author

I couldn’t locate the docs for doing this all myself for the greater good. Any direction there would be helpful

@jatorre
Copy link
Member

jatorre commented Jul 17, 2020 via email

@RoboDonut
Copy link
Author

CREATE OR REPLACE FUNCTION jslibs.turf.ST_CROSSES(geojson_a GEOGRAPHY, geojson_b GEOGRAPHY) AS (
  ST_GEOGFROMGEOJSON(jslibs.turf.booleanCrosses(ST_ASGEOJSON(geojson_a),ST_ASGEOJSON(geojson_b)))
);

But got Access Denied: Dataset jslibs:turf: User does not have bigquery.routines.create permission for dataset jslibs:turf. when executing

@RoboDonut
Copy link
Author

if you can open this up somehow so i can test, i'd be happy to add as many of these as possible.

@jatorre
Copy link
Member

jatorre commented Jul 21, 2020

Yeah, right now I would have to give you rights to deploy, the best is for you to try on your own project, and if the function works well then submit them as Pull Requests. That way I can just add them.

We have a testing environment for continuos integration, but still is not here.

@RoboDonut
Copy link
Author

thanks . I got it working locally will fork and build and PR ASAP

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

2 participants