logo separator

[mkgmap-dev] MapFailedException when generating map for Italy

From Walter Schlögl Walter.Schloegl-Resch at aon.at on Tue Aug 15 11:36:31 BST 2017

Hi Gerd,

many thanks for your hints, with this I could solve all issues.

I have changed the splitter parameter from --max-nodes=800000 to 600000
but I have not updated the osm data to see what happens.
The message "There is not enough room" is gone now as expected,
but also the NullPointerException is gone.

I have copied the tile anyway if you still see a need for analysis.

https://1drv.ms/f/s!AqiYxUeSl56qgnCes1X0pcV4NIQ9

The only message that I still get for Italy is this.
SCHWERWIEGEND (StyledConverter): 50100025.o5m: Attention: Tile contains both 
drive-on-left (22469) and drive-on-right roads (25540)

I would expect such a message for other countries, but not for Italy.
If this message is harmless, I will just ignore it.

Walter


-----Ursprüngliche Nachricht----- 
From: Gerd Petermann
Sent: Monday, August 14, 2017 10:02 AM
To: Development list for mkgmap
Subject: Re: [mkgmap-dev] MapFailedException when generating map for Italy

Hi Walter,

I think you have several problems here.
1) The message "There is not enough room in a single garmin map for all the 
input data. The .osm file should be split into smaller pieces first."
means that you should use a smaller maxnodes value  in splitter (or change 
the style to add fewer data)
2) in 50100031.o5m there seems to be a data error. If I got that right the 
error was already fixed in the OSM database (way 195550142 was changed 
recently),
so I probably cannot reproduce the problem. Maybe post a link to your input 
file.
3) Finally we have the NullPointerException. I can add a check to avoid 
that, but I'd like to find out why this happens.
It might be related to the problems in 2) , so again I'd like to have the 
input file 50100031.o5m.

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von 
Walter Schlögl <Walter.Schloegl-Resch at aon.at>
Gesendet: Montag, 14. August 2017 09:41:44
An: Development list for mkgmap
Betreff: [mkgmap-dev] MapFailedException when generating map for Italy

I am generating many maps without any error,
only the area of Italy is throwing an error which I cannot solve.

I hope, anybody is having an idea, what could be the solution.

The coordinates are: 4.4°O – 21.1°O and 35°N - 45°N

The error message:

SCHWERWIEGEND (MapFailedException): 50100004.o5m: (thrown in 
BufferedImgFileWriter.ensureSize()) There is not enough room in a single 
garmin map for all the input data. The .osm file should be split into 
smaller pieces first.
SCHWERWIEGEND (MapFailedException): 50100009.o5m: (thrown in 
BufferedImgFileWriter.ensureSize()) There is not enough room in a single 
garmin map for all the input data. The .osm file should be split into 
smaller pieces first.
SCHWERWIEGEND (MapFailedException): 50100017.o5m: (thrown in 
BufferedImgFileWriter.ensureSize()) There is not enough room in a single 
garmin map for all the input data. The .osm file should be split into 
smaller pieces first.
SCHWERWIEGEND (MapFailedException): 50100018.o5m: (thrown in 
BufferedImgFileWriter.ensureSize()) There is not enough room in a single 
garmin map for all the input data. The .osm file should be split into 
smaller pieces first.
SCHWERWIEGEND (MapFailedException): 50100021.o5m: (thrown in 
BufferedImgFileWriter.ensureSize()) There is not enough room in a single 
garmin map for all the input data. The .osm file should be split into 
smaller pieces first.
SCHWERWIEGEND (MapFailedException): 50100023.o5m: (thrown in 
BufferedImgFileWriter.ensureSize()) There is not enough room in a single 
garmin map for all the input data. The .osm file should be split into 
smaller pieces first.
SCHWERWIEGEND (StyledConverter): 50100025.o5m: Attention: Tile contains both 
drive-on-left (16159) and drive-on-right roads (21405)
SCHWERWIEGEND (MapFailedException): 50100025.o5m: (thrown in 
BufferedImgFileWriter.ensureSize()) There is not enough room in a single 
garmin map for all the input data. The .osm file should be split into 
smaller pieces first.
SCHWERWIEGEND (MapFailedException): 50100028.o5m: (thrown in 
BufferedImgFileWriter.ensureSize()) There is not enough room in a single 
garmin map for all the input data. The .osm file should be split into 
smaller pieces first.
SCHWERWIEGEND (RouteArc): 50100031.o5m: Way SS116 Strada Statale 116 
Randazzo - Capo d'Orlando (id 195550142) contains an arc whose length 
(5717225 units) is too big to be encoded, using length 4194303
SCHWERWIEGEND (RouteArc): 50100031.o5m: Way SS116 Strada Statale 116 
Randazzo - Capo d'Orlando (id 195550142) contains an arc whose length 
(5717225 units) is too big to be encoded, using length 4194303
SCHWERWIEGEND (RouteArc): 50100031.o5m: Way SS116 Strada Statale 116 
Randazzo - Capo d'Orlando (id 195550142) contains an arc whose length 
(5717225 units) is too big to be encoded, using length 4194303
SCHWERWIEGEND (RouteArc): 50100031.o5m: Way SS116 Strada Statale 116 
Randazzo - Capo d'Orlando (id 195550142) contains an arc whose length 
(5717225 units) is too big to be encoded, using length 4194303
SCHWERWIEGEND (RouteArc): 50100031.o5m: Way SS116 Strada Statale 116 
Randazzo - Capo d'Orlando (id 195550142) contains an arc whose length 
(5327027 units) is too big to be encoded, using length 4194303
SCHWERWIEGEND (RouteArc): 50100031.o5m: Way SS116 Strada Statale 116 
Randazzo - Capo d'Orlando (id 195550142) contains an arc whose length 
(5327027 units) is too big to be encoded, using length 4194303
SCHWERWIEGEND (RouteArc): 50100031.o5m: Way SS116 Strada Statale 116 
Randazzo - Capo d'Orlando (id 195550142) contains an arc whose length 
(5327027 units) is too big to be encoded, using length 4194303
SCHWERWIEGEND (RouteArc): 50100031.o5m: Way SS116 Strada Statale 116 
Randazzo - Capo d'Orlando (id 195550142) contains an arc whose length 
(5327027 units) is too big to be encoded, using length 4194303
SCHWERWIEGEND (MapFailedException): 50100034.o5m: (thrown in 
BufferedImgFileWriter.ensureSize()) There is not enough room in a single 
garmin map for all the input data. The .osm file should be split into 
smaller pieces first.
java.lang.NullPointerException
    at 
uk.me.parabola.imgfmt.app.Coord.distanceInDegreesSquared(Coord.java:425)
    at uk.me.parabola.imgfmt.app.Coord.distance(Coord.java:409)
    at 
uk.me.parabola.mkgmap.osmstyle.housenumber.HousenumberGroup.findSegment(HousenumberGroup.java:151)
    at 
uk.me.parabola.mkgmap.osmstyle.housenumber.HousenumberRoad.detectGroups(HousenumberRoad.java:205)
    at 
uk.me.parabola.mkgmap.osmstyle.housenumber.HousenumberRoad.buildIntervals(HousenumberRoad.java:104)
    at 
uk.me.parabola.mkgmap.osmstyle.housenumber.HousenumberGenerator.generate(HousenumberGenerator.java:706)
    at 
uk.me.parabola.mkgmap.osmstyle.StyledConverter.end(StyledConverter.java:624)
    at 
uk.me.parabola.mkgmap.reader.osm.ElementSaver.convert(ElementSaver.java:246)
    at 
uk.me.parabola.mkgmap.reader.osm.o5m.O5mBinMapDataSource.load(O5mBinMapDataSource.java:53)
    at 
uk.me.parabola.mkgmap.reader.osm.OsmMapDataSource.load(OsmMapDataSource.java:138)
    at uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:154)
    at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:52)
    at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:265)
    at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:261)
    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)
Exiting - if you want to carry on regardless, use the --keep-going option


Walter Schlögl
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev 



More information about the mkgmap-dev mailing list