Skip to content

Abnormal elevation spikes #3031

Closed
Closed

Description

@justwalked

I am seeing abnormal elevation spikes along the Suhua Highway, a cliff road in eastern Taiwan. Not only the elevation is inaccurate, but these spikes also result in artificial increase of the total route length and total up/down.

Allow me to point out one of these spikes:

image

graphhopper.com link

This section above should be more or less flat, around 200-240m high. The actual elevation can easily be seen by zooming and checking the elevation contour lines of the Cyclosm layer. Elevation of Graphhopper somehow jumps 200m off the ground. In particular, it indicates +300m within 0.5km, which is 60%. The Suhua Highway is a primary road for cars and trucks, it simply cannot be that steep anyway.

For other spikes on the Suhua Highway, you can check this route (I excluded part of the Suhua Highway that is currently closed for repairs).

I am aware of #2028 but I think this issue is more about real errors than elevation "noise".

Activity

  1. easbar commented on Jun 27, 2024

    @easbar
    Member

    This happens whenever roads aren't aligned with the elevation data. Either the road geometry or the elevation data is inaccurate. Looking at the contour lines of CycleOSM and the satellite imagery in iD it looks like the the OSM way is aligned (more or less) with the imagery, but the elevation data is unrealistic. The road should be more or less parallel to the contour lines, but they go straight where the road bends, like here:

    image

    Maybe we can fix this by probing the elevation in the vicinity of the road.

  2. justwalked commented on Jun 27, 2024

    @justwalked
    Author

    Thanks for looking into this!

    Do you mean the elevation data used by Graphhopper is wrong while the one used on Cyclosm’s renderer is better?

    Where does your screenshot comes from?

  3. otbutz commented on Jul 8, 2024

    @otbutz
    Contributor

    The resolution of the elevation source could be a factor here:

    grafik

    Google Earth

  4. maurossi commented on Jul 28, 2024

    @maurossi

    Hello, I agree with @otbutz the substantial error shown in elevation changes Up/Down root cause may be the large amount of points used to estimate elevation changes. The current density of points used is producing a cumulative error, but this is happening in all Up/Down of all routes, not only in where altitude curves may have been collected by old/erronous maps.

    This happens whenever roads aren't aligned with the elevation data

    In my experience Up/Down values are always "doubled" or worse for long distance (> 50km) , and please consider that I am stating this based on 60 - 70 routes and real trips in places I know from childhood.

    From mathematical perspective, in order to have more precise Up/Down values, the solution is quite simple, reducing of a factor 10 or 100 density of points considered in the Up/Down estimates will certainly solve the "User Experience" problem.

    Is there a way to do this with the Custom Model scripting language accessible in the web page?

    In the end, everybody would like to see Up/Down estimates in GraphHopper browser experience that are not "double than he real ones", don't you think?

  5. karussell commented on Jul 29, 2024

    @karussell
    Member

    IMO there is no good solution except higher precision elevation data (see e.g. #2823).

    From mathematical perspective, in order to have more precise Up/Down values, the solution is quite simple, reducing of a factor 10 or 100 density of points considered in the Up/Down estimates will certainly solve the "User Experience" problem.

    I don't think so. This would result in problems where ups and downs are more frequent.

    Is there a way to do this with the Custom Model scripting language accessible in the web page?

    Not yet, but was thinking about a new "path detail" feature which could use a formula or similar.

  6. easbar commented on Jul 29, 2024

    @easbar
    Member

    Do you mean the elevation data used by Graphhopper is wrong while the one used on Cyclosm’s renderer is better?
    Where does your screenshot comes from?

    No, it might even be the same data. But looking at the screenshot (which shows the CycleOSM contour lines if I remember correctly) we see that the elevation data shows a massive incline (>30m) along this short section (~100m) of the road. Nobody would build a road like this, but this mismatch leads to these elevation spikes.

  7. petrarca-arezzo commented on Mar 16, 2025

    @petrarca-arezzo

    Looks like I might have a similar issue (see screenshot below). The selected bicyle way is completely flat, but graphhopper thinks there is an elevation change of around 40m which is nonsense. Unfortunately, therefore (I think) this way is avoided for longer routing ways, which is wrong.

    So question - is there a way to change the wrong elevation data somewhere/somehow; where does it come from?

    Image

  8. otbutz commented on Mar 17, 2025

    @otbutz
    Contributor

    Using Google Maps 3D view:

    Image

    The satellite is most likely confusing the closed canopy with land mass.

  9. justwalked commented on May 17, 2025

    @justwalked
    Author

    @karussell Can you elaborate on the closing of this issue?

  10. karussell commented on May 17, 2025

    @karussell
    Member

    As the elevation data is the problem here there are other issues that reported this problem already.

    IMO there is no good solution except higher precision elevation data (see e.g. #2823).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions