-
-
Notifications
You must be signed in to change notification settings - Fork 340
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
getAreaOfPolygon returns a number when I pass an unclosed area #302
Comments
Can you please let me know if this is a bug or not dear @manuelbieh? IMO it is but still it is a good idea to be sure 😅 |
OK, I am coming from the future. In this part of code we are closing it geolib/src/getAreaOfPolygon.ts Lines 16 to 36 in 26ec179
Though IMO this is not OK, and also the documentation lacks clarity about these kind of underlying implementations. I hope someone will just address this GitHub issue |
Hi dear reader, When I execute this code IDK why but for some reason for the second one also returns a number though it is not even a closed area. So my question is that if this is an expected behaviour and OK. BTW based on my understanding it should not work like that, I mean it is not even a closed are to begin with:
Here is what I meant by not closed area, as you can see in the uploaded image the starting point - the first point on the right top corner - is not even close to the ending point -- the last point in the bottom right corner:
Here is my work env conf:
The text was updated successfully, but these errors were encountered: