Locus Map - forum

Support => Troubles & Questions => Topic started by: michaelbechtold on March 15, 2016, 21:14:54

Title: Hill shading and HGT downloads
Post by: michaelbechtold on March 15, 2016, 21:14:54
Tried Hill shading for areas for which I do not yet have the HGTs on my SD.
Funny effect: the HGT covers more than shading is displaying. But the dynamic elevation does recognize and display the value. I attached a typical situation.

Gesendet von meinem SM-N9005 mit Tapatalk

Title: Re: Hill shading and HGT downloads
Post by: Menion on March 15, 2016, 21:39:57
Map tile is shaded only for tiles, where is 100% cover of elevation over HGT. When few pixels don't have elevation (missing HGT file), whole tile is not shaded.
Title: Re: Hill shading and HGT downloads
Post by: michaelbechtold on March 15, 2016, 22:00:21
Arghhh, so tiles and HGT are not aligned - did not know / anticipate that.
But why are you so strict ? Why not just shade what you can ? Anyway, no big deal, now that I understand why/how.
Title: Re: Hill shading and HGT downloads
Post by: Menion on March 15, 2016, 22:17:48
Why? Mainly a simplicity of algorithm where you do not have to care if data are on certain pixel or not. I just quickly test if they are everywhere (over whole tile) and if not, tile is skipped. Fast and effective.
Title: Re: Hill shading and HGT downloads
Post by: michaelbechtold on March 19, 2016, 12:30:49
Just d ownloaded latest beta and tested hill shading on two devices. One has 3" HGTs,  the other has 1" HGTs. Both show missing tiles in the middle of downloaded areas. No pattern I can see, random effect,  but reproducible as far as I perceive.

edit
Zooming in can show tiles from lower zoom in some places.
Title: Re: Hill shading and HGT downloads
Post by: Menion on March 19, 2016, 13:25:48
Good day Michael, this is known issue to me. It do not happen randomly, but only on places, where is absolutely no information on below vector map. So in case, vector map has nothing to draw on tile (no line, no point), shading is also not able to draw. Quite complicated to solve now, though I'm aware of it.
Title: Re: Hill shading and HGT downloads
Post by: gynta on March 20, 2016, 23:20:38
btw.

What's the big(?) difference between 3" and 1" files:

3": 1,75MB
1": 24,7MB - whole Alps 2,5 GB (roughly)

Compare...

...slope: http://www.oldboys.at/comp1/
plausible view?

...hillshading: http://www.oldboys.at/comp2/
Title: Re: Hill shading and HGT downloads
Post by: michaelbechtold on March 21, 2016, 08:04:06
Quote from: gynta on March 20, 2016, 23:20:38
btw.

What's the big(?) difference between 3" and 1" files:

3": 1,75MB
1": 24,7MB - whole Alps 2,5 GB (roughly)

Compare...

...slope: http://www.oldboys.at/comp1/
plausible view?

...hillshading: http://www.oldboys.at/comp2/
Ich habe letztens etwas gespielt und es gab Orte wo die beiden massivst unterschiedlich waren.
Everybody needs to decide about cost /  benefit of pot. 3 times more details versus 10 times bigger files.
My finding below does not apply to 1 versus 3", it is a general issue, as Menion confirmed.
Not sure though why there is no map tile painting as without shading and only then a systematic nested loop (x, y) for the shading. A second loop should practically have no overhead compared to the operation in its core, the shading itself ....
Cheers from Casa
Michael

Gesendet von meinem SM-N9005 mit Tapatalk

Title: Re: Hill shading and HGT downloads
Post by: szebenyib on April 11, 2016, 16:47:18
Hi menion!

Is it somehow possible to select an area and download hgt data for it? Like it is possible to do with maps.

Sent from my Moto G 2014 using Tapatalk

Title: Re: Hill shading and HGT downloads
Post by: Menion on April 11, 2016, 17:05:27
Hello,
no it is not.

Idea already exists here: http://help.locusmap.eu/topic/more-comfortable-srtm-download-for-hill-shading
Title: Re: Hill shading and HGT downloads
Post by: michaelbechtold on April 11, 2016, 19:13:52
Quote from: menion on April 11, 2016, 17:05:27
Hello,
no it is not.

Idea already exists here: http://help.locusmap.eu/topic/more-comfortable-srtm-download-for-hill-shading
This link has some work around that I built.

Gesendet von meinem SM-N9005 mit Tapatalk

Title: Re: Hill shading and HGT downloads
Post by: szebenyib on April 15, 2016, 10:11:44
Voted for it, thanks!

Sent from my Moto G 2014 using Tapatalk