vasturiano / globe.gl

UI component for Globe Data Visualization using ThreeJS/WebGL
https://vasturiano.github.io/globe.gl/example/world-population/
MIT License
1.97k stars 293 forks source link

Polygons are not filling the shape of the Antarctic continent #189

Open patriklaszlo opened 5 months ago

patriklaszlo commented 5 months ago

Describe the bug In the Hexed Country Polygons example, the Antarctic polygons are not properly filling the shape of the continent.

Expected behavior Antarctic to be made up of polygons the same way rest of the continents are.

Screenshots

image

Desktop (please complete the following information):

vasturiano commented 4 months ago

@patriklaszlo thanks for reaching out.

This is related to the issue in H3 on the difficulty to handle polygons which include poles. Such is the special case with Antarctica. The issue is here: https://github.com/uber/h3-py/issues/285

The recommended approach is to slice up that specific polygon in slices like a pizza. That's a pre-processing that needs to be performed on the input geojson. I haven't had the chance to do that to see if it fixes the issue, but I suppose it should.