Skip to content
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

buffer issue #900

Closed
sc-keyzo opened this issue Aug 14, 2017 · 4 comments
Closed

buffer issue #900

sc-keyzo opened this issue Aug 14, 2017 · 4 comments

Comments

@sc-keyzo
Copy link

Hi

Using the following lines of code with @turf/turf 4.6.0 results in a buffer with kinks

var buffer = turf.buffer(route, 100, 'miles');

'route' in the above code is the linestring defined in the attached geojson file. This geojson file also shows the result of the turf.buffer call.

buffer-error.geojson.zip

Have i specified something incorrectly?

regards
Simon

@DenisCarriere
Copy link
Member

The kinks are definitely causing some issues in the Buffer operations, both in jsts & the newly proposed #876.

Wouldn't know what to do for temporary solution, I've tried @turf/clean-coords & @turf/simplify and nothing seems to fix that LineString.

JSTS

image

@stebogit
Copy link
Collaborator

Fixed with #938

@sc-keyzo
Copy link
Author

Hi guys, thanks for your work on this, would it be possible to provide me with an example of how i would use turf/projection to fix my issue?

thanks
Simon

@DenisCarriere
Copy link
Member

I'll publish a patch release with this fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants