-
Notifications
You must be signed in to change notification settings - Fork 956
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/line-intersect
Support Geometry Objects & Collection
#731
Conversation
+1 so far, I'll have a look at it further tomorrow. |
- Simplify main tests (must have the least possible LOC) - Include separated Geometry Objects tests - Included test case for input mutation - Update contributors - Compact `if` statements CC: @dpmcmlxxvi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I'm glad you caught the FeatureCollection testing
The tests source code was a little too intense, I've included the Geometry Object, Geometry Collection & Feature Collection in it's own test suite.
Where is this happening? The |
|
Not including the input GeoJSON in the Output can be pretty difficult to understand where those intersections actually occur or *not occur. Input not included to results
|
I personally use http://geojson.io/ to visually see the |
Ah, understood. That's a good point. |
@turf/line-intersect
Support Geometry Objects & Collection
Added support for all GeoJSON types that contain a line, polygon, or their multi-geometries. Turns out updating
@turf/line-segment
in #727 did most of the work. This PR mostly just updates the tests.The updates here include:
Please fill in this template.
npm test
at the sub modules where changes have occurred.npm run lint
to ensure code style at the turf module level.