Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
program hangs while calling geodesicDistanceOnWGS84 #75
Is there such a pair of points for which I am expected to see such behavior?
Hi @climbage . Sorry for the delayed response.
What I have not been able to figure out is in which case I end up creating a Point that manifests this behaviour.
referenced this issue
Dec 21, 2015
I have what I believe is a reproducible test case in #100.
When trying to compute the distance between a pair of points (using geometry-api-java, 1.2.1), this pair of points seems to hang the library. Here is the code I used (Scala 2.10.5):
Here are some other examples of pairs of points:
Notice that the absolute value of the x values sum to near 180, and the y values are nearly * -1 of each other.
IDK if you needed more examples or not.
Is there any estimate for how long this will take to fix?
I've got a workaround (for my use case) that simply doesn't attempt to call your code if the difference in longitudes is too great.
Obviously, this means that I'm unable to do 100% of the computations, but thankfully my use case is OK with some data loss.