You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently had the need to outline a lineString and it seems that using 'buffer' is not doing it as I expected.
I expected it to be like a stroke, so width is everywhere the same, which it clearly isn't:
Thanks @stephanbogner for highlighting the issue, it does indeed look like something is a bit off...
Currently the buffer functionality is provided by the jsts library so we have limited control over that. However it's been a longstanding task/dream to remove that dependency. This is another helpful reason to keep us pursue that so thank you :)
Activity
rowanwins commentedon Jul 4, 2017
Thanks @stephanbogner for highlighting the issue, it does indeed look like something is a bit off...
Currently the buffer functionality is provided by the
jstslibrary so we have limited control over that. However it's been a longstanding task/dream to remove that dependency. This is another helpful reason to keep us pursue that so thank you :)stephanbogner commentedon Jul 5, 2017
Thank you very much for explaining this dependency – I was not aware.
DenisCarriere commentedon Jul 5, 2017
The main issue with
bufferwas applying a buffer which is equidistant (ref issue #660).Before it use to do this:

To fix this, we applied a project & reproject to the coordinates (decimal degrees).
https://github.com/Turfjs/turf/blob/master/packages/turf-buffer/index.js#L105-L110
There's definitely room for improvement in the
@turf/buffer.adds test issue #815
stebogit commentedon Sep 12, 2017
Fixed with #938