logo separator

[mkgmap-dev] DEM/Contourlines causing grey (empty) squares at the border of maps

From Gerd Petermann gpetermann_muenchen at hotmail.com on Fri Apr 27 08:27:15 BST 2018

Hi Felix,

a convex polygons doesn't seem to solve it. I tried with the attached and still see those problems :-(

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Gerd Petermann <gpetermann_muenchen at hotmail.com>
Gesendet: Freitag, 27. April 2018 08:53:28
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] DEM/Contourlines causing grey (empty) squares at the border of maps

Hi Felix,

I think it is the shape of the poly that matters. Triangular shapes seem to be problematic. Pattern in DEM would be something like
UUUUUUUUUUUUU
UUUUUUVUUUUUU
UUUUUVVUUUUUU
UUUUVVVUUUUUU
UUUVVVVVUUUUU
with U for undefined and V for knwon height.

If you use the (rectilinear) area.poly created by splitter when splitting the geofabrik OSM files you will not see this pattern as often.
Maybe it would be enough to change the poly so that it is convex, not concave:
https://en.wikipedia.org/wiki/Concave_polygon

And yes, I can confirm the missing altitude values with gray squares.

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Felix Hartmann <extremecarver at gmail.com>
Gesendet: Freitag, 27. April 2018 08:42:52
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] DEM/Contourlines causing grey (empty) squares at the border of maps

I guess if the poly is a bit bigger - it would not happen? Could you try by enlarging the poly 2km to the outside? Not using a poly at all would be really big or am I wrong? Which normal poly do you mean? The area.poly created while splitting the geofabrik osm files? Or the area.poly created while splitting the phyghtmap osm.pbf contourlines file?

I also noticed that while any of that grey square is visible in Basecamp - Basecamp does not show altitude in the lower left corner anymore.

On 27 April 2018 at 07:40, Gerd Petermann <gpetermann_muenchen at hotmail.com<mailto:gpetermann_muenchen at hotmail.com>> wrote:
Hi Felix,

hmm, yes, that really looks bad. At the moment I only have work-arounds:
1) Add additional DEM layers so that the error only shows up in smaller rectangles.
2) Don't use --dem-poly, I think this causes the trouble. Or maybe try the poly file created for the normal tiles.

I guess that the encoder still doesn't work 100% correctly, but I have no idea how to fix that and Frank Stinner seems to have stopped his work on
https://github.com/FSofTlpz/Garmin-DEM-Build

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces at lists.mkgmap.org.uk>> im Auftrag von Gerd Petermann <gpetermann_muenchen at hotmail.com<mailto:gpetermann_muenchen at hotmail.com>>
Gesendet: Donnerstag, 26. April 2018 20:53:21
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] DEM/Contourlines causing grey (empty) squares at      the border of maps

Hi Felix,

I'll have a closer look tomorrow. IIRC this also happens with Garmin maps.

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces at lists.mkgmap.org.uk>> im Auftrag von Felix Hartmann <extremecarver at gmail.com<mailto:extremecarver at gmail.com>>
Gesendet: Donnerstag, 26. April 2018 20:23:11
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] DEM/Contourlines causing grey (empty) squares at      the border of maps

well maybe it's more common - like in 1/5 maps if the include 1" DEM data - only happens if map includes DEM.

On 26 April 2018 at 20:20, Felix Hartmann <extremecarver at gmail.com<mailto:extremecarver at gmail.com><mailto:extremecarver at gmail.com<mailto:extremecarver at gmail.com>>> wrote:
In some cases at the borders of maps - there appear grey rectangles in Basecamp and Mapsource (well do not mind Mapsource much - it's very outdated) - this only appears if using a DEM/contourline overview...

Sorry as Basecamp is windows only - only windows installer/Mac OSX gmap file here:
https://openmtbmap.org/mtbbayern.exe
or
https://openmtbmap.org/mtbbayern_macosx.7z

Without contourlines the map works fine (mapsetx.tdb...)
Contourlines map alone also does not work (mapsetz.tdb...)


So the bug is clearly in the transparent DEM/contourlines map. Sometimes simply rendering the contourlines map again and the bug is gone...


Seems to be not that common but also not that rare (maybe in 1 out of 20 maps)

--
Felix Hartman - Openmtbmap.org & VeloMap.org
Schusterbergweg 32/8
6020 Innsbruck
Austria - Österreich



--
Felix Hartman - Openmtbmap.org & VeloMap.org
Schusterbergweg 32/8
6020 Innsbruck
Austria - Österreich
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk<mailto:mkgmap-dev at lists.mkgmap.org.uk>
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk<mailto:mkgmap-dev at lists.mkgmap.org.uk>
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev



--
Felix Hartman - Openmtbmap.org & VeloMap.org
Schusterbergweg 32/8
6020 Innsbruck
Austria - Österreich
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bayern2.poly
Type: application/octet-stream
Size: 306 bytes
Desc: bayern2.poly
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20180427/3e6d3852/attachment-0001.obj>


More information about the mkgmap-dev mailing list