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

intersect used to work with points and lines, now only with polygons? #1972

Open
ghost opened this issue Nov 29, 2020 · 0 comments
Open

intersect used to work with points and lines, now only with polygons? #1972

ghost opened this issue Nov 29, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 29, 2020

I don't know if an example is needed, because this bug is documented here: https://turfjs.org/docs/#intersect

"Takes two polygons and finds their intersection..." (Emphasis mine.)

Apparently TurfJS intersect used to intersect properly as other GIS analysis libraries do. To quote the following question:

"In old turfjs versions, it was possible to intersect a line and a polygon, like in this example.

But changing the turf.js version to the last one makes it fail, as shown in this other example.

The docs say that the intersect function works only with two polygons, so the error is documented.

Is it possible to use some other function to do that? Is there any example around there showing how to do it?" (Emphasis mine.)

https://gis.stackexchange.com/questions/290438/turfjs-intersect-line-and-polygon#:~:text=In%20old%20turfjs%20versions%2C%20it,polygon%2C%20like%20in%20this%20example.&text=The%20docs%20say%20that%20the,so%20the%20error%20is%20documented.

Is this ever planned to be fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant