d3 / d3-geo

Geographic projections, spherical shapes and spherical trigonometry.

Home Page:https://d3js.org/d3-geo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Polygon fill the whole Earth

jerome-lemaire opened this issue · comments

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/

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

This sounds similar to this other issue #227

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