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

antimeridian fix returns inverted geometry #32

Closed
johntruckenbrodt opened this issue May 25, 2023 · 2 comments
Closed

antimeridian fix returns inverted geometry #32

johntruckenbrodt opened this issue May 25, 2023 · 2 comments

Comments

@johntruckenbrodt
Copy link

Hi there. Thanks for the really handy tool. Any idea what is wrong with this geometry:
test.txt
(.json replaced with .txt so Github allows upload)

The returned geometry is basically an inversion of the actual geometry:
image

here's a zoom:
image

@gadomski
Copy link
Owner

Your polygon is wound clockwise, meaning that the algorithm (correctly, IMO) think that it's a hole. To get your expected result, reverse the order of the coordinates.

For more information, check out this comment on a similar issue: #29 (comment)

This is coming up repeatedly though, so maybe there's something we can do to help the user out ... I'll think about some sort of heuristic that we can apply in this case (or maybe a warning message).

@johntruckenbrodt
Copy link
Author

Thanks a lot @gadomski and sorry for not checking more thoroughly.

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

2 participants