logo separator

[mkgmap-dev] bug when splitting 9M osm file (latest svn splitter)

From John Taylor john at vetsurgeon.org.uk on Thu Sep 10 15:24:18 BST 2009

Using latest SVN (10/9/09 2pm GMT) on an OSM file downloaded from osmxapi:
wget -O stratmc.osm
http://www.informationfreeway.org/api/0.6/map?bbox=-1.786651611328125,52.00530048893775,-1.270294189453125,52.21783094992681
Loads fine in JOSM

Java version:
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu11)
OpenJDK Client VM (build 14.0-b08, mixed mode, sharing)

Trying to split area with:
java -Xmx1000m -jar splitter-svn/trunk/dist/splitter.jar stratmc.osm

output:
Time started: Thu Sep 10 15:21:29 BST 2009
Map is being split for resolution 13:
 - area boundaries are aligned to 0x800 map units
 - areas are multiples of 0x1000 map units wide and high
The input osm file(s) will be re-parsed during the split (slower) because no
--cache parameter was specified
Processing stratmc.osm
A total of 38,348 nodes, 0 ways and 0 relations were processed in 1 file
Min node ID = 214337
Max node ID = 491065472
Time: Thu Sep 10 15:21:29 BST 2009
Exact map coverage is (51.9793438911438,-1.9250106811523438) to
(52.3472785949707,-1.145925521850586)
Rounded map coverage is (51.943359375,-1.93359375) to
(52.3828125,-1.142578125)
Splitting nodes into areas containing a maximum of 1,600,000 nodes each...
1 areas generated:
Area 63240001 covers (0x24f000,0xfffea000) to (0x254000,0xffff3000)
Writing out split osm files Thu Sep 10 15:21:29 BST 2009
Processing 1 areas in a single pass
Starting pass 1 of 1, processing 1 areas (63240001 to 63240001)
Processing stratmc.osm
Writing ways Thu Sep 10 15:21:30 BST 2009
Writing relations Thu Sep 10 15:21:31 BST 2009
Exception in thread "main" java.lang.NullPointerException
    at uk.me.parabola.splitter.OSMWriter.writeString(OSMWriter.java:163)
    at uk.me.parabola.splitter.OSMWriter.write(OSMWriter.java:113)
    at
uk.me.parabola.splitter.SplitProcessor.writeRelation(SplitProcessor.java:246)
    at
uk.me.parabola.splitter.SplitProcessor.endRelation(SplitProcessor.java:174)
    at uk.me.parabola.splitter.OSMParser.endElement(OSMParser.java:218)
    at
uk.me.parabola.splitter.AbstractXppParser.parse(AbstractXppParser.java:44)
    at uk.me.parabola.splitter.Main.processOsmFiles(Main.java:346)
    at uk.me.parabola.splitter.Main.processMap(Main.java:335)
    at uk.me.parabola.splitter.Main.writeAreas(Main.java:319)
    at uk.me.parabola.splitter.Main.split(Main.java:156)
    at uk.me.parabola.splitter.Main.main(Main.java:93)


areas.list generated:
# List of areas
# Generated Thu Sep 10 15:21:29 BST 2009
#
63240001: 2420736,-90112 to 2441216,-53248
#       : 51.943359,-1.933594 to 52.382813,-1.142578


681594 byte 63240001.osm.gz file generated
no templates file created
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20090910/9588562a/attachment.html 


More information about the mkgmap-dev mailing list