Thanks Gerd,

Files attached.

Joao


On 24/09/2020 6:13 pm, Gerd Petermann wrote:
Hi Joao,

Please attach the areas.list produced by splitter. Maybe I'll be able to 
reproduce the error here.
BTW: DEM calculation errors don't depend on the style or the objects in the OSM 
files.

Gerd

________________________________________
Von: mkgmap-dev <[email protected]> im Auftrag von Joao Almeida 
<[email protected]>
Gesendet: Mittwoch, 23. September 2020 14:47
An: [email protected]
Betreff: Re: [mkgmap-dev] DEM file Number too big for binary encoding with      
14 bits

Thank you Gerd,

So I narrowed it down a bit more. I'm getting a similar behavior when
trying to build Russia with DEM. But because it is quite a big file I'm
doing it with ANZ.

Here are my findings.
It seems to be related to DEM and only affecting New Zealand. If I build
Australia using the same settings/options/style I get a working map.

If I build New Zealand without DEM and only contours I get a working
map. Note the contours are created from the same HGT files, so I would
assume the HGT files are correct.
If I build New Zealand without DEM or contours I also get a working map,
so I would say that would eliminate a TYP or Style issue.


Also I mentioned I can create a DEM map for Australia without a problem
with the same DEM options so I would say the DEM settings would not be a
problem but I don't know for sure.

Here are the settings:

--overview-dem-dist=88888
--dem-dists=9942

Build command line:
java -Xmx8192m -ea -jar C:\Garmin\MKGMAP~2\mkgmap.jar --mapname=37406557
--family-id=5979 C:\Garmin\Typs\jbm52dwl.typ --series-name="JBT New
Zealand" --family-name="JBT New Zealand" --overview-mapname="JBT New
Zealand" --style-file=C:\Garmin\styles --style="Style-Jbm5.2.0a-Merge"
--gmapi --keep-going --output-dir=C:\Garmin\MAPUPL~1 --index --nsis
--tdbfile --draw-priority=10 --remove-short-arcs --check-roundabouts
--drive-on=left --route --name-tag-list=int_name,name
--location-autofill=is_in,nearest --index --housenumbers
--copyright-message="Map data © openstreetmap.org" --check-styles
--bounds="c:\Garmin\Sources\bounds-latest.zip"
--precomp-sea="c:\Garmin\Sources\sea-latest.zip" --show-profiles=1
--latin1 --code-page=1252 --name-tag-list=name --add-pois-to-areas
--pois-to-areas-placement=always=middle --add-pois-to-lines
--link-pois-to-ways --make-poi-index --x-split-name-index
--nearby-poi-rules-config="c:\Garmin\Styles\Style-Jbm5.2.0a-Merge\config.nearbypoi"
--check-roundabout-flares --add-boundary-nodes-at-admin-boundaries=4
--drive-on=detect --merge-lines --remove-ovm-work-files --verbose -c
C:\Garmin\SPLITT~4\DEM~1.ARG -c C:\Garmin\SPLITT~4\TEMPLA~2.ARG
PAUSE


When I build the New Zealand map I only get a map at zoom level 30km or
below with Basecamp set to map detail High.
The output from this build command line is attached.

screenshot NZ1 -- no map at all except for some islands New zealand
should be where the tracks are.
screenshot NZ2 -- we have some parts of the map but the east side of New
Zealand is cut.

screenshot NZ3 -- a lower zoom level the east side of New Zealand appears.

Thanks for the help.

Joao

On 23/09/2020 3:00 am, Gerd Petermann wrote:
Hi Joao,

difficult. Seems the algorithm to encode DEM data is wrong. All the DEM data in 
your screenshot looks bad, so maybe the problem is in the hgt input files or in 
the DEM options.
Maybe try to use slightly different dem-dist value(s).
If this doesn't help I need the *.hgt files that are used for this tile and the 
file C:\Garmin\SPLITT~4\67301053.o5m
and the DEM options to be able to reproduce the problem.

Gerd

________________________________________
Von: mkgmap-dev <[email protected]> im Auftrag von Joao Almeida 
<[email protected]>
Gesendet: Freitag, 18. September 2020 03:41
An: [email protected]
Betreff: [mkgmap-dev] DEM file Number too big for binary encoding with 14       
bits

Hi,

Any idea how I can diagnose this issue?


SEVERE (StyledConverter): C:\Garmin\SPLITT~4\67301057.o5m: Attention:
Tile contains both drive-on-left (81) and drive-on-right roads (1031)
SEVERE (StyledConverter): C:\Garmin\SPLITT~4\67301054.o5m: Attention:
Tile contains both drive-on-left (4817) and drive-on-right roads (4982)
SEVERE (StyledConverter): C:\Garmin\SPLITT~4\67301053.o5m: Attention:
Tile contains both drive-on-left (3133) and drive-on-right roads (1255)
SEVERE (StyledConverter): C:\Garmin\SPLITT~4\67301052.o5m: Attention:
Tile contains both drive-on-left (5668) and drive-on-right roads (603)
SEVERE (StyledConverter): C:\Garmin\SPLITT~4\67301061.o5m: Attention:
Tile contains both drive-on-left (2381) and drive-on-right roads (81)
SEVERE (StyledConverter): C:\Garmin\SPLITT~4\67301065.o5m: Attention:
Tile contains both drive-on-left (745) and drive-on-right roads (18)
SEVERE (MapFailedException): C:\Garmin\SPLITT~4\67301053.o5m: (thrown in
DEMTile.writeValAsBin()) Number too big for binary encoding with 14
bits:32559
SEVERE (MapBuilder): C:\Garmin\SPLITT~4\67301053.o5m: exception while
creating DEM file Number too big for binary encoding with 14 bits:32559
SEVERE (MapFailedException): C:\Garmin\SPLITT~4\67301053.o5m: (thrown in
MapBuilder.buildDem()) DEM
SEVERE (StyledConverter): C:\Garmin\SPLITT~4\67301069.o5m: Attention:
Tile contains both drive-on-left (4648) and drive-on-right roads (227)
SEVERE (StyledConverter): C:\Garmin\SPLITT~4\67301070.o5m: Attention:
Tile contains both drive-on-left (6416) and drive-on-right roads (2)
SEVERE (StyledConverter): C:\Garmin\SPLITT~4\67301097.o5m: Attention:
Tile contains both drive-on-left (19) and drive-on-right roads (2)
SEVERE (StyledConverter): C:\Garmin\SPLITT~4\67301099.o5m: Attention:
Tile contains both drive-on-left (2) and drive-on-right roads (2)
Number of MapFailedExceptions: 1
Number of ExitExceptions: 0

Getting this while trying to build the map with DEM

The result is attached.

Thanks a lot
Joao



# List of areas
# Generated Thu Sep 24 19:34:41 AEST 2020
#
67301052: -2097152,-8378368 to -1327104,-8069120
#       : -45.000000,-179.780273 to -28.476563,-173.144531

67301053: -1966080,6842368 to -1327104,8050688
#       : -42.187500,146.821289 to -28.476563,172.749023

67301054: -2646016,6842368 to -1966080,7806976
#       : -56.777344,146.821289 to -42.187500,167.519531

67301055: -2019328,7806976 to -1966080,8007680
#       : -43.330078,167.519531 to -42.187500,171.826172

67301056: -2019328,8007680 to -1966080,8050688
#       : -43.330078,171.826172 to -42.187500,172.749023

67301057: -2609152,7806976 to -2148352,8050688
#       : -55.986328,167.519531 to -46.098633,172.749023

67301058: -2072576,7806976 to -2019328,7925760
#       : -44.472656,167.519531 to -43.330078,170.068359

67301059: -2148352,7806976 to -2072576,7837696
#       : -46.098633,167.519531 to -44.472656,168.178711

67301060: -2103296,7837696 to -2072576,7925760
#       : -45.131836,168.178711 to -44.472656,170.068359

67301061: -2148352,7837696 to -2103296,7925760
#       : -46.098633,168.178711 to -45.131836,170.068359

67301062: -2093056,7925760 to -2041856,8050688
#       : -44.912109,170.068359 to -43.813477,172.749023

67301063: -2148352,7925760 to -2093056,8050688
#       : -46.098633,170.068359 to -44.912109,172.749023

67301064: -2041856,8042496 to -2019328,8050688
#       : -43.813477,172.573242 to -43.330078,172.749023

67301065: -2041856,7925760 to -2019328,8042496
#       : -43.813477,170.068359 to -43.330078,172.573242

67301066: -1896448,8237056 to -1820672,8359936
#       : -40.693359,176.748047 to -39.067383,179.384766

67301067: -1896448,8206336 to -1820672,8237056
#       : -40.693359,176.088867 to -39.067383,176.748047

67301068: -1896448,8050688 to -1820672,8159232
#       : -40.693359,172.749023 to -39.067383,175.078125

67301069: -1861632,8159232 to -1820672,8206336
#       : -39.946289,175.078125 to -39.067383,176.088867

67301070: -1896448,8159232 to -1861632,8206336
#       : -40.693359,175.078125 to -39.946289,176.088867

67301071: -2572288,8050688 to -1961984,8388608
#       : -55.195313,172.749023 to -42.099609,180.000000

67301072: -1961984,8050688 to -1896448,8085504
#       : -42.099609,172.749023 to -40.693359,173.496094

67301073: -1961984,8085504 to -1896448,8140800
#       : -42.099609,173.496094 to -40.693359,174.682617

67301074: -1961984,8161280 to -1896448,8359936
#       : -42.099609,175.122070 to -40.693359,179.384766

67301075: -1961984,8140800 to -1923072,8161280
#       : -42.099609,174.682617 to -41.264648,175.122070

67301076: -1923072,8140800 to -1896448,8161280
#       : -41.264648,174.682617 to -40.693359,175.122070

67301077: -1646592,8050688 to -1398784,8359936
#       : -35.332031,172.749023 to -30.014648,179.384766

67301078: -1787904,8241152 to -1646592,8359936
#       : -38.364258,176.835938 to -35.332031,179.384766

67301079: -1820672,8241152 to -1787904,8359936
#       : -39.067383,176.835938 to -38.364258,179.384766

67301080: -1820672,8050688 to -1671168,8134656
#       : -39.067383,172.749023 to -35.859375,174.550781

67301081: -1671168,8050688 to -1646592,8134656
#       : -35.859375,172.749023 to -35.332031,174.550781

67301082: -1771520,8134656 to -1744896,8185856
#       : -38.012695,174.550781 to -37.441406,175.649414

67301083: -1820672,8134656 to -1771520,8185856
#       : -39.067383,174.550781 to -38.012695,175.649414

67301084: -1765376,8185856 to -1744896,8241152
#       : -37.880859,175.649414 to -37.441406,176.835938

67301085: -1820672,8185856 to -1785856,8241152
#       : -39.067383,175.649414 to -38.320313,176.835938

67301086: -1785856,8185856 to -1765376,8241152
#       : -38.320313,175.649414 to -37.880859,176.835938

67301087: -1744896,8159232 to -1646592,8241152
#       : -37.441406,175.078125 to -35.332031,176.835938

67301088: -1744896,8134656 to -1724416,8159232
#       : -37.441406,174.550781 to -37.001953,175.078125

67301089: -1710080,8134656 to -1646592,8159232
#       : -36.694336,174.550781 to -35.332031,175.078125

67301090: -1724416,8134656 to -1718272,8142848
#       : -37.001953,174.550781 to -36.870117,174.726563

67301091: -1718272,8134656 to -1710080,8142848
#       : -36.870117,174.550781 to -36.694336,174.726563

67301092: -1724416,8148992 to -1710080,8159232
#       : -37.001953,174.858398 to -36.694336,175.078125

67301093: -1718272,8142848 to -1710080,8148992
#       : -36.870117,174.726563 to -36.694336,174.858398

67301094: -1724416,8142848 to -1718272,8148992
#       : -37.001953,174.726563 to -36.870117,174.858398

dem=C:\Garmin\3''HGT
overview-dem-dist=88888
dem-dists=9942
dem-poly=C:\Garmin\SplitterTemp\areas.poly

_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to