-
Notifications
You must be signed in to change notification settings - Fork 118
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
Missing elevation data for specific routes #137
Comments
Another example (bridge is the issue): https://brouter.damsy.net/latest/#map=15/45.1781/4.8188/standard&lonlats=4.814286,45.18863|4.811883,45.184122|4.814329,45.180613 |
Out of interest I took a closer look at the elevation data for those cases (GeoTIFF from http://srtm.csi.cgiar.org/srtmdata/, converted to BIL format, and to ASCII for debugging with MapcreatorTest.java): Coastal road, Rudelić-DragaScreenshot leaflet-raw-dem srtm_40_04_bil.zip The red cells are voids (no data), the CGIAR CSI SRTM has shorelines cut out (FAQ). BRouter interpolates height within a block of four cells, if one of these cells has no data, the elevation of the node is also set to no data:
brouter/brouter-map-creator/src/main/java/btools/mapcreator/SrtmRaster.java Lines 49 to 62 in ab2f5e3
Ferry, BremerhavenScreenshot leaflet-raw-dem srtm_38_02_bil.zip The shoreline with no data reaches into the river mouth where the ferry crosses. Bridge, Saint-VallierThe river has elevation data (srtm_37_03_bil.zip), but BRouter is removing elevation from bridges and tunnels, in order to interpolate between start and end elevation:
This just doesn't work if a route point as start of a segment is on the bridge. So this is generally working as designed and these exceptional cases are probably hard to improve, therefore closing. edit: fix interpolation blocks layout, last block no vertical offset |
Reported in nrenner/brouter-web#147 by @MichaelK92.
http://brouter.de/brouter-web/#map=17/44.44707/15.18322/OpenStreetMap&lonlats=15.183293,44.447082|15.181603,44.448656
Moving the start point past the previous node in the curve, some elevation data is filled in:
http://brouter.de/brouter-web/#map=17/44.44707/15.18322/OpenStreetMap&lonlats=15.18339,44.447082|15.181603,44.448656
Ways:
https://www.openstreetmap.org/way/253261970
https://www.openstreetmap.org/way/253354195
The text was updated successfully, but these errors were encountered: