
Hi Arndt, I was not able to reproduce this problem. Please tell us your dem options. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Arndt Röhrig <arndt@speichenkarte.de> Gesendet: Montag, 25. Dezember 2017 03:17:14 An: Development list for mkgmap Betreff: [mkgmap-dev] Error BeNeLul Happy Christmas :) i have a problem to build a NRWplus map or a BeNeLux map. (NRW plus all countrys around) The OSM-Data is reduced to "Bremen". SRTM is NRW & all countrys around. mkgmap 4000 build a correctly map. mkgmap 4019 crashes with this message: SCHWERWIEGEND (MapBuilder): ..\Splitter\88039020.osm.pbf: exception while creating DEM file SCHWERWIEGEND (MapFailedException): ..\Splitter\88039020.osm.pbf: (thrown in MapBuilder.makeMap()) 23 SCHWERWIEGEND (MapBuilder): ..\Splitter\88039021.osm.pbf: exception while creating DEM file SCHWERWIEGEND (MapFailedException): ..\Splitter\88039021.osm.pbf: (thrown in MapBuilder.makeMap()) 23 gmapsupp will not build with this. http://www.speichenkarte.de/beta/88039020.osm.pbf Greets Arndt

Hi Gerd, I got a similar error in East Malaysia/Philippine in that tile: 63240328: 188416,5429248 to 538624,5650432 If you need o5m-file let me know. I used: x-dem=E:\SRTM\hgt\SRTM3v3.0 x-overview-dem-dist=276160 2nd: After you changed the file size limit I ran in some of the problematic tiles into: SCHWERWIEGEND (BlockManager): .\63240185.o5m: overflowed directory with max block 65534, current=65535 SCHWERWIEGEND (MapFailedException): .\63240185.o5m: (thrown in BlockManager.allocate()) Too many blocks. Use a larger block size with an option such as --block-size=1024 or --block-size=2048 It mainly happen in low data areas in China, Arabia and Australia. I'm not so sure, if I just should increase the block-size to 128000 or is there an limit? The examples are quite low values. Can you or someone else gave me a suggestion? 3rd: It seems overview-dem is generated for a larger rectangle area, not only for the existing map area. For areas out of map area (areasa.list,..) I would expect DEM is treated as 0 elevation. Henning On 25.12.2017 17:11, Gerd Petermann wrote:
Hi Arndt,
I was not able to reproduce this problem. Please tell us your dem options.
Gerd
________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Arndt Röhrig <arndt@speichenkarte.de> Gesendet: Montag, 25. Dezember 2017 03:17:14 An: Development list for mkgmap Betreff: [mkgmap-dev] Error BeNeLul
Happy Christmas :)
i have a problem to build a NRWplus map or a BeNeLux map. (NRW plus all countrys around)
The OSM-Data is reduced to "Bremen". SRTM is NRW & all countrys around.
mkgmap 4000 build a correctly map. mkgmap 4019 crashes with this message:
SCHWERWIEGEND (MapBuilder): ..\Splitter\88039020.osm.pbf: exception while creating DEM file SCHWERWIEGEND (MapFailedException): ..\Splitter\88039020.osm.pbf: (thrown in MapBuilder.makeMap()) 23 SCHWERWIEGEND (MapBuilder): ..\Splitter\88039021.osm.pbf: exception while creating DEM file SCHWERWIEGEND (MapFailedException): ..\Splitter\88039021.osm.pbf: (thrown in MapBuilder.makeMap()) 23
gmapsupp will not build with this.
http://www.speichenkarte.de/beta/88039020.osm.pbf
Greets
Arndt _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Henning, reg. 2nd: I think the message is clear: "Use a larger block size with an option such as --block-size=1024 or --block-size=2048" The value 65535 is the number of blocks, not the block size. I am not sure why this number is not calculated by mkgmap, I'll have a closer look later. reg. 3rd: Yes, we probably need another option like dem-poly to tell mkgmap a polygon. Points outside of the polygon would get height 0. I wrote this to Ervin but it seems that I forgor to copy the list. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Henning Scholland <osm@hscholland.de> Gesendet: Montag, 25. Dezember 2017 14:06:22 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] Error BeNeLul Hi Gerd, I got a similar error in East Malaysia/Philippine in that tile: 63240328: 188416,5429248 to 538624,5650432 If you need o5m-file let me know. I used: x-dem=E:\SRTM\hgt\SRTM3v3.0 x-overview-dem-dist=276160 2nd: After you changed the file size limit I ran in some of the problematic tiles into: SCHWERWIEGEND (BlockManager): .\63240185.o5m: overflowed directory with max block 65534, current=65535 SCHWERWIEGEND (MapFailedException): .\63240185.o5m: (thrown in BlockManager.allocate()) Too many blocks. Use a larger block size with an option such as --block-size=1024 or --block-size=2048 It mainly happen in low data areas in China, Arabia and Australia. I'm not so sure, if I just should increase the block-size to 128000 or is there an limit? The examples are quite low values. Can you or someone else gave me a suggestion? 3rd: It seems overview-dem is generated for a larger rectangle area, not only for the existing map area. For areas out of map area (areasa.list,..) I would expect DEM is treated as 0 elevation. Henning On 25.12.2017 17:11, Gerd Petermann wrote:
Hi Arndt,
I was not able to reproduce this problem. Please tell us your dem options.
Gerd
________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Arndt Röhrig <arndt@speichenkarte.de> Gesendet: Montag, 25. Dezember 2017 03:17:14 An: Development list for mkgmap Betreff: [mkgmap-dev] Error BeNeLul
Happy Christmas :)
i have a problem to build a NRWplus map or a BeNeLux map. (NRW plus all countrys around)
The OSM-Data is reduced to "Bremen". SRTM is NRW & all countrys around.
mkgmap 4000 build a correctly map. mkgmap 4019 crashes with this message:
SCHWERWIEGEND (MapBuilder): ..\Splitter\88039020.osm.pbf: exception while creating DEM file SCHWERWIEGEND (MapFailedException): ..\Splitter\88039020.osm.pbf: (thrown in MapBuilder.makeMap()) 23 SCHWERWIEGEND (MapBuilder): ..\Splitter\88039021.osm.pbf: exception while creating DEM file SCHWERWIEGEND (MapFailedException): ..\Splitter\88039021.osm.pbf: (thrown in MapBuilder.makeMap()) 23
gmapsupp will not build with this.
http://www.speichenkarte.de/beta/88039020.osm.pbf
Greets
Arndt _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Gerd, thanks for your explanations. I just realized the exact meaning of the error message. I misunderstood it and was confused. Size 1024 didn't work, so I'm now trying 4096. I mean this issue just happens in very few places. So my idea would be to keep it as it. As I read in our other mail, it seems not the best idea to increase the size too much. I will just let the maps compile and see the result and keep you posted. But it seems to be better to manually tweak the areas.list. Regarding the polygon, I think best is by default just use the polygon of the map. I estimate, mkgmap don't know anything about the complete map, so maybe splitter can write it in the templates.args (just an idea). After thinking a while about the splitting, I ended up with two approaches: 1) max-area-size in km^2. I guess it's simple to implement, but of course not very accurate. 2) calculate something like the densities-out.txt for all the hgt-files. I'm not sure if it's worth to spend a lot of time coding for it, as it's mainly will be run one time. Bye Henning On 26.12.2017 05:23, Gerd Petermann wrote:
Hi Henning,
reg. 2nd: I think the message is clear: "Use a larger block size with an option such as --block-size=1024 or --block-size=2048" The value 65535 is the number of blocks, not the block size. I am not sure why this number is not calculated by mkgmap, I'll have a closer look later.
reg. 3rd: Yes, we probably need another option like dem-poly to tell mkgmap a polygon. Points outside of the polygon would get height 0. I wrote this to Ervin but it seems that I forgor to copy the list.
Gerd
________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Henning Scholland <osm@hscholland.de> Gesendet: Montag, 25. Dezember 2017 14:06:22 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] Error BeNeLul
Hi Gerd, I got a similar error in East Malaysia/Philippine in that tile: 63240328: 188416,5429248 to 538624,5650432
If you need o5m-file let me know.
I used: x-dem=E:\SRTM\hgt\SRTM3v3.0 x-overview-dem-dist=276160
2nd: After you changed the file size limit I ran in some of the problematic tiles into: SCHWERWIEGEND (BlockManager): .\63240185.o5m: overflowed directory with max block 65534, current=65535 SCHWERWIEGEND (MapFailedException): .\63240185.o5m: (thrown in BlockManager.allocate()) Too many blocks. Use a larger block size with an option such as --block-size=1024 or --block-size=2048 It mainly happen in low data areas in China, Arabia and Australia. I'm not so sure, if I just should increase the block-size to 128000 or is there an limit? The examples are quite low values. Can you or someone else gave me a suggestion?
3rd: It seems overview-dem is generated for a larger rectangle area, not only for the existing map area. For areas out of map area (areasa.list,..) I would expect DEM is treated as 0 elevation.
Henning
On 25.12.2017 17:11, Gerd Petermann wrote:
Hi Arndt,
I was not able to reproduce this problem. Please tell us your dem options.
Gerd
________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Arndt Röhrig <arndt@speichenkarte.de> Gesendet: Montag, 25. Dezember 2017 03:17:14 An: Development list for mkgmap Betreff: [mkgmap-dev] Error BeNeLul
Happy Christmas :)
i have a problem to build a NRWplus map or a BeNeLux map. (NRW plus all countrys around)
The OSM-Data is reduced to "Bremen". SRTM is NRW & all countrys around.
mkgmap 4000 build a correctly map. mkgmap 4019 crashes with this message:
SCHWERWIEGEND (MapBuilder): ..\Splitter\88039020.osm.pbf: exception while creating DEM file SCHWERWIEGEND (MapFailedException): ..\Splitter\88039020.osm.pbf: (thrown in MapBuilder.makeMap()) 23 SCHWERWIEGEND (MapBuilder): ..\Splitter\88039021.osm.pbf: exception while creating DEM file SCHWERWIEGEND (MapFailedException): ..\Splitter\88039021.osm.pbf: (thrown in MapBuilder.makeMap()) 23
gmapsupp will not build with this.
http://www.speichenkarte.de/beta/88039020.osm.pbf
Greets
Arndt _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi,
It seems overview-dem is generated for a larger rectangle area, not only for the existing map area. For areas out of map area (areasa.list,..) I would expect DEM is treated as 0 elevation.
I agree that this doesn't look good. Would be nice, if mkgmap could use only HGT that cover detailed tiles. I think mkgmap already gather list of tiles and their background areas, this could be used for DEM. -- Best regards, Andrzej

Hi, yes, I came to the same conclusion, will be the next change. ciao Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Andrzej Popowski <popej@poczta.onet.pl> Gesendet: Dienstag, 26. Dezember 2017 12:50:39 An: mkgmap-dev@lists.mkgmap.org.uk Betreff: Re: [mkgmap-dev] Error BeNeLul Hi,
It seems overview-dem is generated for a larger rectangle area, not only for the existing map area. For areas out of map area (areasa.list,..) I would expect DEM is treated as 0 elevation.
I agree that this doesn't look good. Would be nice, if mkgmap could use only HGT that cover detailed tiles. I think mkgmap already gather list of tiles and their background areas, this could be used for DEM. -- Best regards, Andrzej _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Arndt, I think I found the problem and fixed it with r4021. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Arndt Röhrig <arndt@speichenkarte.de> Gesendet: Montag, 25. Dezember 2017 16:48:57 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] Error BeNeLul Hi Gerd, x-dem=C:\Python27\Scripts\hgt\VIEW1,C:\Python27\Scripts\hgt\VIEW3,C:\Python27\Scripts\hgt\SRTM1,C:\Python27\Scripts\hgt\SRTM3 x-overview-dem-dist=200000 x-dem-dists=3314,6628,24512,53024,106048,212096 Germany, Alps, Austria, Kanaren and Balearen works well with this, only BeNeLux crashes. BeNeLux OSM Data and SRTM Date and x-dem crashes with the error message below. BeNeLux OSM Data and x-dem without SRTM Data works well SRTM Data and x-dem and a little bit OSM-Data round Wuppertal works well too Greets Arndt hgt file N52E002 not found. Is expected to cover sea. hgt file N52E003 not found. Is expected to cover sea. hgt file N53E002 not found. Is expected to cover sea. hgt file N53E003 not found. Is expected to cover sea. java.lang.AssertionError at uk.me.parabola.imgfmt.app.dem.DEMSection.writeHeader(DEMSection.java:170) at uk.me.parabola.imgfmt.app.dem.DEMHeader.writeFileHeader(DEMHeader.java:54) at uk.me.parabola.imgfmt.app.CommonHeader.writeHeader(CommonHeader.java:73) at uk.me.parabola.imgfmt.app.dem.DEMFile.write(DEMFile.java:61) at uk.me.parabola.mkgmap.build.MapBuilder.makeMap(MapBuilder.java:305) at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:107) at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:69) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:263) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:259) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Gerd Petermann hat am 25. Dezember 2017 um 10:11 geschrieben: Hi Arndt, I was not able to reproduce this problem. Please tell us your dem options. Gerd ________________________________________ Von: mkgmap-dev im Auftrag von Arndt Röhrig Gesendet: Montag, 25. Dezember 2017 03:17:14 An: Development list for mkgmap Betreff: [mkgmap-dev] Error BeNeLul Happy Christmas :) i have a problem to build a NRWplus map or a BeNeLux map. (NRW plus all countrys around) The OSM-Data is reduced to "Bremen". SRTM is NRW & all countrys around. mkgmap 4000 build a correctly map. mkgmap 4019 crashes with this message: SCHWERWIEGEND (MapBuilder): ..\Splitter\88039020.osm.pbf: exception while creating DEM file SCHWERWIEGEND (MapFailedException): ..\Splitter\88039020.osm.pbf: (thrown in MapBuilder.makeMap()) 23 SCHWERWIEGEND (MapBuilder): ..\Splitter\88039021.osm.pbf: exception while creating DEM file SCHWERWIEGEND (MapFailedException): ..\Splitter\88039021.osm.pbf: (thrown in MapBuilder.makeMap()) 23 gmapsupp will not build with this. http://www.speichenkarte.de/beta/88039020.osm.pbf Greets Arndt _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap<mailto:mkgmap-dev@lists.mkgmap>.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (4)
-
Andrzej Popowski
-
Arndt Röhrig
-
Gerd Petermann
-
Henning Scholland