I'm working on a profile for fast velomobiles. Downhill you easiely get speeds from 60 up to 100 kilometers per hour. With such speeds primary roads are good but tracks are bad. Uphill with speeds like a normal bike you don't like primary roads.
So I'm intrested in elvation based way penalty too.
Greetings,
Volker
I would appreciate a pull request on github to add that, and of course we could review that together to ensure the above features.
regards, Arndt
I think "is-uphill" and "is-downhill" in the waysection with your 10 meters filter and the cutoff would be good enough for my purpose. Eventually different cutoff parameters and elevation filter value for the waysection could be usefull. A continues variable is in my opinion on this elevation data no use. The irregularaties can be handled by the turncost value.
Regards, Volker
there are also new parameters in context:global:
elevationmaxbuffer
This is the maximum size of the elevationbuffer in meters. Everything that doesn't fit in this buffer gets penalized. If not set the value is 10, exactly as in the previous versions.
elevationpenaltybuffer
If the elevationbuffer exceeds the elevationpenaltybuffer the waysegment is recognized as uphill or downhill. By default the value is set to 5 meters.
elevationbufferreduce
With this parameter set, the elevationbuffer gets an additional reduction of this percentage (of the distance) if it is above the elevationpenaltybuffer limit. This reduction gets penalized for the amount the elevationbuffer is reduced. By default the value is set to 0 to get an identical behavior to the previous versions.
In my velomobil profile with low cutoffs (and high elevationcosts) I set:
assign elevationpenaltybuffer 8
assign elevationmaxbuffer 13
assign elevationbufferreduce 0.3
This gives for me similar elevationcosts and good results for the uphill and downhill recognition of the segments.
Regards, Volker
elevationmaxbuffer and elevationpenaltybuffer work on the same elevationbuffer. The elevationbufferreduce is in my opinion necessary to get a reasonable space for the elevationbuffer. I think 5 meters for uphill/downhill recognition is to less to get the artefacts filtered out and just setting elevationmaxbuffer to a higher value to get more space leeds to bad overall elevation minimizing. The solution is to penalize not only what doesn't fit in elevationmaxbuffer but also what's above elevationpenaltybuffer. The elevationbufferreduce is the amount it is penalized and everything that is penalized has to leave the buffer. Otherwise it wouldn't be possible to keep track of the penalties.
Regards, Volker
I think to setup something similar like this, it is necessary to add the uphillcutoff to the way section, instead of having it in the global section.
Hi,there are also new parameters in context:global:
elevationmaxbuffer
This is the maximum size of the elevationbuffer in meters. Everything that doesn't fit in this buffer gets penalized. If not set the value is 10, exactly as in the previous versions.
elevationpenaltybuffer
If the elevationbuffer exceeds the elevationpenaltybuffer the waysegment is recognized as uphill or downhill. By default the value is set to 5 meters.
elevationbufferreduce
With this parameter set, the elevationbuffer gets an additional reduction of this percentage (of the distance) if it is above the elevationpenaltybuffer limit. This reduction gets penalized for the amount the elevationbuffer is reduced. By default the value is set to 0 to get an identical behavior to the previous versions.
3/ it is said these 3 metres are penalized, but how ?
By normal uphillcutoff/uphillcost ? if values are e.g. 3.0/70, it would need 30 m / 1 km.
IF elevationbufferreduce < uphill/downhillcutoff, does it mean that there is no penalty, just buffer is reduced and up/downhillcostfactors are considered ?
......
Here an example with easier to calculate values:uphillcutoff = 1uphillcost = 100elevationbufferreduce = 0.5
elevationpenaltybuffer = 10
elevationmaxbuffer=20
First we start with empty buffer and go 1km distance and 19 meters uphill. We get no penalty because the first 10 meters are ignored by the cutoff, the second 9 meters fill the elevationbuffer below the elevationpenaltybuffer value and therefore costfactor will be used.......
First we start with empty buffer and go 1km distance and 19 meters uphill. We get no penalty because the first 10 meters are ignored by the cutoff, the second 9 meters fill the elevationbuffer below the elevationpenaltybuffer value and therefore costfactor will be used. ................. If we go another 1km distance and 9 meters uphill, the 10 meters are ignored, 9 meters remain in the elevationbuffer and costfactor will be used. ......................
...... If we go another 1km distance and 9 meters uphill, the 10 meters are ignored, 9 meters remain in the elevationbuffer and costfactor will be used.....
This is probably a separate topic but are there plans for considering gradient, not just elevation in a route calculation?
Am Montag, 18. Mai 2015 00:01:53 UTC+2 schrieb Andrew Heard:This is probably a separate topic but are there plans for considering gradient, not just elevation in a route calculation?
After I integrated it into my Brouter profile, I found it does a better job to avoid steep gradients at the hills than the high uphillcutoff/uphillcost values. There is quirks, but much less than with the uphillcutoff/uphillcost hack. So I ended up use this preprocessed data in my profiles.
Am Samstag, 6. Juni 2015 19:04:40 UTC+2 schrieb Pallai Roland:After I integrated it into my Brouter profile, I found it does a better job to avoid steep gradients at the hills than the high uphillcutoff/uphillcost values. There is quirks, but much less than with the uphillcutoff/uphillcost hack. So I ended up use this preprocessed data in my profiles.
so you managed to modify the brouter-mapcreator to inject an incline pseudo-tag into the rd5-data ?
I'm currently working on a traffic-load pseudo-tag, so maybe pseudo-tags are the way to better routing...
As for SRMT30: it is available, and I already did a long way to integrate it in brouter, but I did not yet commit the patch and I did not make the map-creator job to use it.
At the 2015-Fossgis talk I had two slides about SRTM30 and especially about the new filter, a combination of an disk-area and a central value filter. It's a german talk, the elevation part is at the end, maybe you want to have a look: https://www.youtube.com/watch?v=Eba4fcYI4h4
this route is nearly flat:
http://mtdev.dap.magex.hu:3003/#zoom=19&lat=49.21962&lon=18.74577&scope=varosban
To the south there is hospital on mountain, route is below it and nearly flat.
See:
https://goo.gl/maps/As8aI
Are you interested in more wrongly classified cases?
Will you share your preprocessor?
2015-06-08 22:14 GMT+02:00 Jozef Matejička <matej...@gmail.com>:this route is nearly flat:
http://mtdev.dap.magex.hu:3003/#zoom=19&lat=49.21962&lon=18.74577&scope=varosban
To the south there is hospital on mountain, route is below it and nearly flat.
See:
https://goo.gl/maps/As8aI
Are you interested in more wrongly classified cases?The problem here is also the low SRTM resolution. No one can say that this hump is after or under the street by SRTM so it's included into the gradient of the street. The same problem applies for the river banks.Calculated gradient for way 30375695 by the script:0m- 93m 93m* (z:337.67m-345.41m) incline: 8.3%I'm aware of this issue and a possible solution is the SRTM30 data.
in the current design the variables for the way section are evaluated before the elevation information and you can't use the slope of a (short) way segment without a buffer because of the bad quality of the SRTM elevation data. I think the best solution for this is to have more global elevation parameters (with separate buffers) [...]. I did some testing with up to 6 sets just for the elevation penalties (with no significant improvement for my purpose) and got a slowdown of a few percent.
Multiple elevation buffers with different penalty scores sounds like a good solution against too steep slopes. Does it work in practice? What are the drawbacks except the few percent slowdown?