-
Notifications
You must be signed in to change notification settings - Fork 944
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/boolean-valid is not part of turf and fails to build due to missing depedency #1918
Comments
Hey @JamesLMilner There is some history back here #1302 regarding this, it was pretty rough when it got merged which is why it never made it into main package. Sounds like you found a legit issue with an easy fix for the dependencies, but on the whole the module probably needs some more love. Is there a particular validation you're after out of interest? |
@rowanwins thanks for follow up, helpful to know. Does sound like an easy fix, I could look at raising it if you'd like? Nothing in particular, we just had issues where we went to save invalid geometries and were looking for something that would help us prevent that from happening and this seemed like a good module to achieve that. Basically we were just looking to make sure LineStrings and Polygons in particular were well formed (i.e. had minimum number of coordinates and closed correctly) |
I think this was fixed by #2094 |
Firstly thanks for all your hard work on this fantastic library.
I wanted to point out a couple issues with
boolean-valid
. Ifboolean-valid
does not seem to be be part of@turf/turf
. I'm not sure if this is intentional? To reproduce donpm install @turf/turf
and try and useturf.booleanValid
.Also, there appears to be a dependency on
boolean-disjoint
. I'm not sure if this should be specified in the depdencies hereturf/packages/turf-boolean-valid/package.json
Line 50 in b3b5284
To reproduce second issue:
Without install
boolean-disjoint
results in:The text was updated successfully, but these errors were encountered: