-
Notifications
You must be signed in to change notification settings - Fork 60
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
Triangulation of geo coordinates #38
Comments
I also ran into this issue, with general high-resolution data - working with angles in radian, where the data points variance is sometimes as small as 0.1 millirad (1e-4 radian). |
sorry, I've been away from the project for a while. If you send me some test data, I can see if I can get it to work with the raw values. Also - if I recall correctly - there are some optional tolerances that can be set. |
Sorry for the delayed response. Here's the set that gives me the exception. Actually, it's 100 points, but I guess 10 should be enough. 38.359052882483887, 56.02282713353344 Edit: after rereading your post I tried playing with constants in constants.cs and setting DefaultPlaneDistanceTolerance to 1e-30 and FractionalNegligibleVolume to 1e-50 seems to fix the problem. Thanks for the hint! |
Hi.
Thanks for the great library. I was going to use it to triangulate sets of lat/lang values. Unfortunately the algorithm throws a NullReferenceException in CalculateVertexCentroid because vertexIndices is null. Turns out that variance between points is too small (in my case longitude changes in 38.3536 - 38.3668 range, and latitude in even smaller range). If I multiply the values by 10000 triangulation runs just fine.
Is this the intended/expected behaviour?
The algorithm is too complex for me to figure out if there is a more elegant solution than the one I use.
The text was updated successfully, but these errors were encountered: