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 zone transform #916

Closed
ArtCodeKarine opened this issue Aug 24, 2017 · 5 comments
Closed

Buffer zone transform #916

ArtCodeKarine opened this issue Aug 24, 2017 · 5 comments

Comments

@ArtCodeKarine
Copy link

Hello everybody,
I wish to know how i can resolve my problem :
when the buffer zone touches itself, it makes only one area instead of making a "hole" in the middle. Even if the zone is not close. Do you have a solution for it to overlap and it does not merge?
buffer1
buffer2

@rowanwins
Copy link
Member

Hi @ArtCodeKarine

Short answer is there is probably no a answer at the moment.

Unfortunately the buffer module currently uses the jsts library under the hood so we had limited ability to apply fixes for bugs like these. We're currently attempting to remove that dependency but as Im sure you can see it's quite complicated so it's still a little way off sorry :(

@ArtCodeKarine
Copy link
Author

@rowanwins Thank's for your answer :D

@stebogit
Copy link
Collaborator

@ArtCodeKarine have you tried with @turf/transform-scale? It might work for you, just know you'll have to calculate your factor and define the origin (see #849).

@DenisCarriere
Copy link
Member

Thanks for reporting this @ArtCodeKarine , never knew about this strange behavior, this is definitely a bug in jsts which we can't control 😢.

stebogit added a commit that referenced this issue Sep 11, 2017
@stebogit stebogit mentioned this issue Sep 11, 2017
@stebogit
Copy link
Collaborator

Fixed with #938

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

4 participants