You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
triangulate output depending or order of input data #279
triangulate(core) 5.3.1 (r17229) [64-bit] - Optimal (Delaunay) triangulation and gridding of Cartesian table data
[...]
Files srted.xyz and unsrt.xyz differ
👋 Thanks for opening your first issue here! Please make sure you filled out the template with as much detail as possible. We appreciate that you took the time to contribute!
I saw that the manually installed older GMT version produces the correct results.
triangulate 4.5.18 [64-bit] - Optimal (Delaunay) triangulation of Cartesian xyz-data [Shewchuk]
I now recompiled it with the other algorithm, and get similarly messed up results. Here it says:
triangulate 4.5.18 [64-bit] - Optimal (Delaunay) triangulation of Cartesian xyz-data [Watson]
Is that probably a known issue of the Watson algorithm? I guess this one is the one use in the Debian packaged version due to the public domain status?
It's not a known issue to us and I doubt that we will try to investigate/fix it. There are many more important things to do in GMT than to worry because Debian decided to build against Watson instead of Shewchuk. Sorry.
Thank you for your direct answer. I know from own experience that adding
new features and maintaining a reliable codebase can not always go hand in
hand and the developers always have to prioritise.
I hope that someone might eventually find and commit a fix for this bug now
that it is documented.
May I suggest, as a very, very quick fix, to add a small warning when this
algorithm is used, and point out that it is (now) known to be buggy?
Such a warning might have saved us quite a few manhours in find this weak
spot in our workflow. :-)
I will try to look into this over the weekend but my plate is very full these days so no promises.
Thanks a lot for that, but don't sweat it, there is no urgent need for us now that we know about the problem, but once you got time it surely would be good to investigate this a bit further.
sorry to post into this closed thread, but I just figured out what the real problem seems to be. We missed to spot that there were duplicate lines in some of our input files. This seems to be the culprit, having identical x/y pairs in the input data. The sorting in some cases fixed it, but in some other cases caused the error to manifest while the unsorted ones worked.
So the warning when unsorted is in fact unnecessary, and rather should be an error when duplicate x/y pairs are found.
Sorry for your troubles... and thanks for your great work.
Activity
welcome commentedon Jan 3, 2019
👋 Thanks for opening your first issue here! Please make sure you filled out the template with as much detail as possible. We appreciate that you took the time to contribute!
simolon commentedon Jan 3, 2019
I saw that the manually installed older GMT version produces the correct results.
triangulate 4.5.18 [64-bit] - Optimal (Delaunay) triangulation of Cartesian xyz-data [Shewchuk]
I now recompiled it with the other algorithm, and get similarly messed up results. Here it says:
triangulate 4.5.18 [64-bit] - Optimal (Delaunay) triangulation of Cartesian xyz-data [Watson]
Is that probably a known issue of the Watson algorithm? I guess this one is the one use in the Debian packaged version due to the public domain status?
joa-quim commentedon Jan 3, 2019
It's not a known issue to us and I doubt that we will try to investigate/fix it. There are many more important things to do in GMT than to worry because Debian decided to build against Watson instead of Shewchuk. Sorry.
simolon commentedon Jan 3, 2019
PaulWessel commentedon Jan 4, 2019
I will try to look into this over the weekend but my plate is very full these days so no promises.
simolon commentedon Jan 4, 2019
Thanks a lot for that, but don't sweat it, there is no urgent need for us now that we know about the problem, but once you got time it surely would be good to investigate this a bit further.
Warn users that sorted data may be required in triangulate
Warn users that sorted data may be required in triangulate (#292)
PaulWessel commentedon Jan 6, 2019
Closing this since the warning is now merged into master.
simolon commentedon Jan 7, 2019
Hi Paul and Joaquim,
sorry to post into this closed thread, but I just figured out what the real problem seems to be. We missed to spot that there were duplicate lines in some of our input files. This seems to be the culprit, having identical x/y pairs in the input data. The sorting in some cases fixed it, but in some other cases caused the error to manifest while the unsorted ones worked.
So the warning when unsorted is in fact unnecessary, and rather should be an error when duplicate x/y pairs are found.
Sorry for your troubles... and thanks for your great work.
Same fix for Watson in 5.4 branch
Same fix for Watson in 5.4 branch (#297)
Update install instructions for using GMT master (GenericMappingTools…