turf-buffer icon indicating copy to clipboard operation
turf-buffer copied to clipboard

turf.buffer Distances don't seem to match turf.distance

Open owaaa opened this issue 9 years ago • 2 comments

I computing a 25km-75km buffer in eastern Europe. On a 75km buffer turf.distance calculates a point as 60km away but the buffer of 75km does not extend to include the point. I am supplying unit='kilometers' to both. My database which uses sloppyarc seems to agree more with turf.distance. Do these two methods use different distance calculations? It's not documented what buffer uses as an algorithm only that turf.distance uses haversine. I am more concerned about consistency (For UX presentation) than complete accuracy.

owaaa avatar Jan 12 '16 15:01 owaaa

Please post code which illustrates the differing behaviors.

markstos avatar Apr 22 '16 15:04 markstos

This seems to be related to https://github.com/Turfjs/turf-buffer/issues/38

stevevance avatar Nov 03 '19 06:11 stevevance