Repository navigation
Add support for Sonny's LiDAR 1" elevation provider - #3183
Conversation
Why would that be a problem? Isn't that up to the user that downloads the extra data |
IMO it would be similar to using a closed source library (?) But maybe not that bad when it is not used by default and properly documented? Or, what if we could define a list of polygons to exclude these areas (as part of this elevation provider?) and use some fallback? |
karussell
left a comment
There was a problem hiding this comment.
See my change request. Afterwards I can merge this PR, lgtm. Did you test it already in production?
| @@ -87,6 +87,6 @@ public void testGetEle() { | |||
| assertEquals(108, instance.getEle(60.0000001, 16), precision); | |||
| assertEquals(0, instance.getEle(60.0000001, 19), precision); | |||
| // Stor Roten | |||
| assertEquals(14, instance.getEle(60.251, 18.805), precision); | |||
| assertEquals(4, instance.getEle(60.251, 18.805), precision); | |||
There was a problem hiding this comment.
Can you move this change out into a separate PR? I think it is just the fix in core/MultiSourceElevationProvider.java which is unrelated to this PR?
There was a problem hiding this comment.
I think it is just the fix in core/MultiSourceElevationProvider.java which is unrelated to this PR?
This is true. It was not detected previously because this test is disabled. I'll create a separate PR after the merge if I don't forget 🥲
Well, as graphhopper is just a hobby of mine I won't call it "production", but I did plan a 10 days bicycle tour in covered parts of Europe in hilly terrain and didn't notice problems. |
|
Sorry, meant more "real world" than "production" :) |
|
@karussell I don't know how you managed to create commit 6168f2c, but thank you. Now there is no need any longer for fixing the disabled test. |
It is an unsigned commit with your changes and you as the author :) ( |
For the use-case of a not public graphhopper instance, I added support for Sonny's LiDAR Digital Terrain Models of Europe as elevation provider. The advantage is that for the covered area in Europe the DTM data is much better compared to CGIAR data. The disadvantage is that the data is not free to use!
Although I expect that this won't get merged due to the licensing issues and because the data does not get automatically fetched, I decided to create this public pull request such that this work does not get lost. It still could be useful for certain scenarios.