Open kasir-barati opened 1 year ago
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 https://github.com/manuelbieh/geolib/blob/26ec179e861750623d496a962465e5c399664efd/src/getAreaOfPolygon.ts#L16-L36
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: