-
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/buffer attempt to replace jsts #656
Conversation
Thanks for posting the results of your investigation @DenisCarriere , a bit disappointing but let's not lose all hope just yet. I suggest we a look upstream in poylgon-offset and see if the is anything we can contribute the that may aid the cause |
I still have hope! 👍 I'm sure we can find something that's equal or better than |
Going to close this PR, the |
Gday @DenisCarriere I'd leave the pull request open while we explore things just so it's here for reference. Another thing I noticed in the Still need to look at the performance thing further (perhaps it's worth trying and seeing what happens speed wise if you set arcSegments = 1). |
Agreed, however all the no-breaking changes from this PR was translated to: #667. I will be opening a new 👍 Yes I didn't know about those |
Attempting to replace
jsts
from@turf/buffer
, my findings are good & bad:Good
@turf/circle
to create(Multi)Points
buffers is 2-4x faster and has very minimal source code.Bad
polygon-offset
.martinez
] library has a hard time determining the differences betweenPolygon
&MultiPolygon
, the output coordinates are always formatted for a Polygon.jsts
has smooth edges)Benchmark results
Summary
So far, looks like
jsts
is here to stay until we find a better replacement solution.CC: @morganherlocker @rowanwins