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

ndjson-join join using a function instead of ndjson-join expression₀ expression₁ #43

Open
ThomasG77 opened this issue Dec 4, 2021 · 0 comments

Comments

@ThomasG77
Copy link

ThomasG77 commented Dec 4, 2021

I enjoy using your cli. Using it, I'm stuck to make a join on a more complex condition than simple col1 = col2 using ndjson-join expression₀ expression₁ file₀ file₁. I want in particular to make spatial comparison using something similar to the following pseudo code (for illustrating the idea)

ndjson-join 'col1' 'col2' -r turf=@turf/turf 'turf.booleanWithin(d0, d1)' 'd = Object.assign(d0.properties, d1.properties), d' <(ndjson-split 'd.features' < points.geojson) <(ndjson-split 'd.features' < polys.geojson)

d0 and d1 would be alias for 1st and 2nd columns

Any idea own to achieve something similar using your cli? I missed the obvious? Outside of the intended scope?

Thanks for any ideas/feedback

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

1 participant