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

Polygon fill the whole Earth #228

Closed
jerome-lemaire opened this issue Feb 17, 2021 · 3 comments
Closed

Polygon fill the whole Earth #228

jerome-lemaire opened this issue Feb 17, 2021 · 3 comments

Comments

@jerome-lemaire
Copy link

I have an issue with some polygons in my geojson :

My polygon fill the whole Earth. I dont know why.

Working geojson : https://jsfiddle.net/mcr7qode/

Not working geojson : https://jsfiddle.net/q3Lxs8u4/18/

@jerome-lemaire jerome-lemaire changed the title Polygon take the whole Earth Polygon fill the whole Earth Feb 17, 2021
@curran
Copy link
Contributor

curran commented Feb 17, 2021

Have you double checked that no rings in the geometries are anticlockwise?

This sounds similar to this other issue #227

@jerome-lemaire
Copy link
Author

Thanks you, indeed my polygon points where anticlockwise.
Solved by using turf.rewind

@curran
Copy link
Contributor

curran commented Feb 17, 2021

Nice!

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

No branches or pull requests

2 participants