abrensch / brouter

configurable OSM offline router with elevation awareness, Java + Android
MIT License
500 stars 119 forks source link

unable to route from tuas lamp post 1, Singapore and Marina Barrage, Singapore #350

Open Wizit38 opened 3 years ago

Wizit38 commented 3 years ago

Hi I have tried several profiles and they all behave similarly. I can route from a place in singapore to tuas lamp post 1 (singapore)

On the other hand, if you start any route from Tuas lamp post one, the route will be greyed because the 1st 5+km of the route is ?undefined? unable to route from Lamp post 1

polyscias commented 3 years ago

I can reproduce the problem:

The route to lamp post 1 (forth): http://brouter.de/brouter-web/#map=13/1.3068/103.6773/standard&lonlats=103.676884,1.324335;103.613734,1.247708

The route back with the problem (back): http://brouter.de/brouter-web/#map=12/1.2946/103.6862/standard&lonlats=103.613691,1.246049;103.677142,1.324307

If you open the Data tab in brouter-web (press T key) you will see that for the part that is "undefined" the elevation is -8192 and I am pretty sure this correlates with the problem. The remarkable things is that the forth route the elevation is 7 for the last part.

Wizit38 commented 3 years ago

I just discovered the same issue with Marina barrage.

The route to Marina barrage (forth): https://brouter.de/brouter-web/?format=gpx#map=12/1.2470/103.9454/standard,Waymarked_Trails-Cycling,route-quality&lonlats=103.909074,1.300852;103.872526,1.281397

The route back with the problem (back) https://brouter.de/brouter-web/?format=gpx#map=15/1.3019/103.9011/standard,Waymarked_Trails-Cycling,route-quality&lonlats=103.872569,1.281429;103.908902,1.300512

In the data tab, the elevation of the undefined is again -8192

Does this mean that it is a openstreetmap dataset problem? But I dont see altitude/elevation when I query the element in openstreetmap

nrenner commented 2 years ago

The elevation data is missing in our source SRTM CGIAR-CSI.

In this case downloaded with

curl -O "https://srtm.csi.cgiar.org/wp-content/uploads/files/srtm_5x5/TIFF/srtm_57_12.zip"

and converted to BIL format for visualization (red is missing):

grafik Screenshot leaflet-raw-dem srtm_57_12_bil.zip

grafik Screenshot Marina, leaflet-raw-dem srtm_57_12_bil.zip

Usually missing elevation data is handled well, but there is an error when route quality coding is active (see brouter-web#501), so the workaround for now is to turn that off.

nrenner commented 2 years ago

Duplicate of nrenner/brouter-web#501