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

Circular Buffer - and not an elliptical

Open yanaybrook opened this issue 10 years ago • 8 comments

This is known issue in many other programs as well (mySql for example) I'm well aware of the Geographic Vs UTM measurement problem. Example of a buffer of 1 miles using turf-buffer & turf distance. buffer2

yanaybrook avatar Dec 24 '14 08:12 yanaybrook

So what is the solution?

TylerHumphry avatar Mar 11 '15 18:03 TylerHumphry

There is a branch that solves this for points and linestrings. @TylerHumphry if you need to, you could use that code: https://github.com/Turfjs/turf-buffer/pull/4

Polygon buffers are still a work in progress (the algorithm is particularly challenging).

morganherlocker avatar Mar 11 '15 19:03 morganherlocker

Thanks for responding with a solution so quickly. I would certainly jump on that, but I really have no idea how to use the code you referenced. I was using the turf.buffer method because it was so user friendly; guess I will just wait till it is patched.

TylerHumphry avatar Mar 12 '15 19:03 TylerHumphry

Hi,

I was about to open an issue about this. I wrote this small jsfiddle to show what I get from turf and the algorithm I'm using to get a circular buffer.

http://jsfiddle.net/Themacprod/hy7vsa5m/3/

Themacprod avatar May 05 '15 01:05 Themacprod

Has anyone ( @TylerHumphry (?) ) figured out how to adapt the code referenced by @morganherlocker for use as js (web referenced) library? I'm not familiar with node.js and cant get "browserify" to work on it (missing modules).

benj-d avatar Mar 16 '16 17:03 benj-d

Hi there! I gave it a try, see #33

mclaeysb avatar Jun 12 '16 18:06 mclaeysb

Has this been fixed for point buffers at some point? (no pun intended :smile: ) I am seeing a correct circular buffer using the latest release, but all of the issues mentioning this are still open... should this particular issue be closed? (I believe geodesic buffering has not been solved for the general polygon case yet)

floledermann avatar May 30 '17 07:05 floledermann

There is a branch that solves this for points and linestrings. @TylerHumphry if you need to, you could use that code: #4

Polygon buffers are still a work in progress (the algorithm is particularly challenging).

Hi, is the point buffer fixed?

omar-alnayme avatar Sep 28 '20 15:09 omar-alnayme