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

turf.convex failed in points beside 0°(lon) #2540

Open
jackdsl opened this issue Nov 17, 2023 · 1 comment
Open

turf.convex failed in points beside 0°(lon) #2540

jackdsl opened this issue Nov 17, 2023 · 1 comment

Comments

@jackdsl
Copy link

jackdsl commented Nov 17, 2023

  • [ I use npm install @turf/turf to install turf, so i think the turf should be the latest version. My cesium is 1.88.]
    When I try to use turf.convex to find convex polygon of several points beside 0° (lon), I found that when the number of points need bounding exceeds four, the resulted convex will only return five points(ABCDA), namely a quadrangle.
@smallsaucepan
Copy link
Member

@jackdsl , could you please provide some sample data? For example, the geojson passed to convex() that gives the quadrangle you describe.

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