osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.58k stars 1k forks source link

slope estimation in "distance and mesure" tool #4967

Open jlmalet opened 6 years ago

jlmalet commented 6 years ago

The mesure and plan tool has greatly improved I use various raster maps that provide elevation lines, some of them are created using official maps (more precise terrain representation). I would like in the mesure tool to be able to configure the contour line interval (say each 10m) so that I can estimate the slope by putting 2 points on two successibe contour lines say for example I want to estimate the slope for backcountry skiing, I enter a 100m (height) interval and select 2 master lines at 100m (height) interval, the tool at this time display me 178m "horizontal projection" so the slope is tan-1(100/178) = 29deg

another option would be to be able to set the elevation of the segment, say I draw a track and have 5 points, the elevation between point 1 and 2 is 50m according the map, 2 and 3 is 100m according the map, 3 and 4 is 75m according the map and 4 and 5 have 10m..... the tool can then compute me the slope inclinaison according the distance it computes between the points

slope estimation is vital in backcountry skiing since 30Deg is the limit to take into account for avalanche risk

thanks and regards

vshcherb commented 6 years ago

As of today the maps don't contain information about every point, so we have only information related to the roads. All DEM file information would require much more data.

SergeyP2 commented 6 years ago

vshcherb You have plugin that draws countour lines, even if this is in the middle of the empty forest. Why do you reply again and again that you need to have information for every point and that you have information only for roads -- that is obviously wrong!

jlmalet commented 6 years ago

in my case, I don't ask for DEM values, I want to compute using raster map background.... the elevation information is already built into the map, I just have to enter the values of points to compute the slope...

On Sun, Feb 11, 2018 at 11:40 AM, SergeyP2 notifications@github.com wrote:

vshcherb You have plugin that draws countour lines, even if this is in the middle of the empty forest. Why do you reply again and again that you need to have information for every point and that you have information only for roads -- that is obviously wrong!

β€” You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/osmandapp/Osmand/issues/4967#issuecomment-364741466, or mute the thread https://github.com/notifications/unsubscribe-auth/APLGG6R3uTPFhAEOiwPi3tUN72SXYh1Wks5tTsOhgaJpZM4RyJuu .

scaidermern commented 6 years ago

I want to compute using raster map background.... the elevation information is already built into the map

Raster maps can't contain elevation information. They just consist of pixels.

jlmalet commented 6 years ago

so https://wxs.ign.fr/an7nvfzojv5wa96dsga5nk8w/geoportail/wmts?layer=GEOGRAPHICALGRIDSYSTEMS.MAPS&style=normal&tilematrixset=PM&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fjpeg&TileMatrix=15&TileCol=16920&TileRow=11771 don't contain eΔΊevation information.... πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚ sorry but my poor brain see a way to put points at 1900m, 2000m..... I can even put points each 10m elevation πŸ˜‰

hopefully we didn't had to wait DEM and smartphones to have elevation information on a raster image πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚

On Mon, Feb 12, 2018 at 2:52 PM, Alexander Heinlein < notifications@github.com> wrote:

I want to compute using raster map background.... the elevation information is already built into the map Raster maps can't contain elevation information.

β€” You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/osmandapp/Osmand/issues/4967#issuecomment-364928301, or mute the thread https://github.com/notifications/unsubscribe-auth/APLGG6TOZJewbvqLVhfXgdvRGKMIE9Ezks5tUEIogaJpZM4RyJuu .

vshcherb commented 6 years ago

Raster maps can't contain elevation information. They just consist of pixels. Unless it is DEM files when each pixel represents an altitude in the point

erik55 commented 6 years ago

@SergeyP2 The standard osmand offline maps contain elevation data only for roads, paths etc. (osm highways).

If you also download contour lines (and install the Contour lines and Hillshade plugin), then you have elevation data β€œin the middle of the empty forest”. :-D But that is a lot of additional data, as you can see by the download size.

That means: If you have the Contour lines and Hillshade plugin installed and you have the contour lines downloaded, then the distance and mesure could do what was requested (also I didn’t really understand it, as the description was quite complex). May @jlmalet could do a small sketch, screenshot with some drawings as an example.

SergeyP2 commented 6 years ago

erik55: Exactly! But if you really need this kind of functionality, why not to install and download? As far as I remeber the plugin costs only 1$, and in year 2018 download additional 100..200 MB of elevation data via WiFi isn't a big deal. And with more functionality behind a plugin users will have more incentives to buy it and bring OsmAnd team an additional buck.

erik55 commented 6 years ago

Close that bug please. Or tell us, that you will implement it, if the user has downloaded the contour lines. To many open bugs!!!