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

Polygons that contains a Pole are not filled (so not clickable) #10857

Closed
spiderdab opened this issue Oct 17, 2022 · 6 comments
Closed

Polygons that contains a Pole are not filled (so not clickable) #10857

spiderdab opened this issue Oct 17, 2022 · 6 comments

Comments

@ggetz
Copy link
Contributor

ggetz commented Oct 17, 2022

Hi @spiderdab, changing the arc type to geodesic allows the polygon to fill. Otherwise, I believe the polygon appears to not be filled due to intersecting with the earth's ellipsoid.

This comment has a workaround that may help.

@spiderdab
Copy link
Author

Hi and thank for helping.
I've tried the Geodesic workaround and the fill was ok with the same polygon:
here

but if I put a more complicated polygon (taken from a satellite geojson) it gives me an error..
example:
here

I also tried to reverse the points order (maybe a problem with anticlockwise..) but the result is the same..
Any idea, where the problem is, here?
p.s. the border seems correct.. it is just the fill. I have put the same coords in Mapbox and they look ok, so I think the numbers are correct.

@GatorScott
Copy link

@spiderdab I suspect that the original representation in 3D did cover the pole, but the 2D data in the GeoJSON does not. Below is an image from QGIS showing the poles and the points creating the polygon.

image

Obviously still a problem, but not due to covering the pole.

@ggetz Is there any "Inspector" for polygon triangulation to help see what's going on or a description of how filling works?

@spiderdab
Copy link
Author

spiderdab commented Oct 19, 2022

Indeed I think that this satellite returns a footprint with a hole around the pole, so I was wrong with the issue argumentation..

EDIT:
But, the strange thing is that if I don't convert arctype to GEODESIC, the border is perfectly drawn SANDCASTLE
But it misses the infill..

@ggetz
Copy link
Contributor

ggetz commented Oct 20, 2022

Is there any "Inspector" for polygon triangulation to help see what's going on or a description of how filling works?

No, but that's a good suggestion @GatorScott! I'll add that suggestion to #4871.

@spiderdab I do think the root issue here is a duplicate of #8042 as part of fixing that will need to include special consideration around the north and south poles. The overlapping in the second example (as @GatorScott alludes to) is likely a separate issue with triangulations for large polygons. As a workaround, users have had some luck by breaking up larger polygons into smaller ones.

If you agree, we can close this and move this discussion to those issues.

@spiderdab
Copy link
Author

Thanks for your answer and suggestions.
Yes of course it can be closed.

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

No branches or pull requests

3 participants