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 creates a MultiPolygon instead of a Polygon #2522

Open
flodaniel opened this issue Oct 25, 2023 · 0 comments
Open

buffer creates a MultiPolygon instead of a Polygon #2522

flodaniel opened this issue Oct 25, 2023 · 0 comments

Comments

@flodaniel
Copy link

Using @turf/turf 6.5.0

Given a linestring.json and a buffer size of 500 meters, turf.buffer should (as per its types) generate a Polygon. However it creates a multipolygon.json

This is the code:

   turf.buffer(lineString, bufferSize, {
                            units: "meters",
                        });
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

2 participants