-
Notifications
You must be signed in to change notification settings - Fork 943
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
turf.intersect returns polygon with null geometry instead of undefined #961
Comments
Looks like this may already be fixed? df481ca#diff-4db71116796d555a0638cd247cafeffe |
👍 Thanks for reporting this, yes this has been fixed in #952 The change from I'll update a patch release for this instead of waiting for the next official release. |
Published a new patch release for |
Thanks Denis! Fast work. Just to be sure — did you see my note about returning a Polygon object vs. the previous behavior of returning undefined directly? This was a breaking change for our code which expected to receive a falsey value from `intersect()`, but now receives a Polygon with a falsey geometry.
…On Sep 22, 2017, 10:17 PM -0600, Denis ***@***.***>, wrote:
Closed #961.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
The docs say that
turf.intersect
will returnundefined
in the case where the geometries do not intersect. I'm currently seeing (v4.7.3) that it returns a polygon withgeometry: null
when the geometries do not intersect.Update: To be clear, the bug I'm seeing is that it returns a Polygon object with
geometry: null
, and previously we were expecting it to return justundefined
rather than any kind of Polygon object.The text was updated successfully, but these errors were encountered: