logo separator

[mkgmap-dev] gui for areas.list ?

From Chris Miller chris.miller at kbcfp.com on Fri Aug 28 21:02:00 BST 2009

I've just checked in a partial fix for this. The splitter will now write 
out areas.list files with zero-padding if need be. It will still fail the 
same way however if fed an areas.list file that doesn't have the zero padding.

CM> Hmm, this one had me stumped for a bit but I think I know what it
CM> is. The "mapid = 1" is the giveaway... It looks like the code that
CM> parses areas.list currently looks for an 8 digit number - if it
CM> doesn't find one it'll fail with the exception you've shown. Because
CM> you specified mapid = 1, the ID was written out as a single digit
CM> (rather than "00000001").
CM> 
CM> Try editing the mapids in the file to give the maps 8 digit numbers,
CM> it will then hopefully work OK. I should probably fix the splitter
CM> so it zero-pads out the map ID when writing the areas.list file.
CM> Though I don't know much about the importance of the map ID - do
CM> mkgmap, mapsource, devices etc still work OK if the ID is less than
CM> 10000000?
CM> 
CM> Chris
CM> 
C>> And the --split-file=<file> option is also not working for me on XP.
C>> 
C>> Maybe also a locale problem?
C>> 
C>> mapid = 1
C>> split-file = newareas.list
C>> max-nodes = 1200000
C>> Exception in thread "main" java.lang.IllegalStateException: No match
C>> found
C>> at java.util.regex.Matcher.group(Unknown Source)
C>> at uk.me.parabola.splitter.AreaList.read(AreaList.java:163)
C>> at uk.me.parabola.splitter.Main.readArgs(Main.java:203)
C>> at uk.me.parabola.splitter.Main.split(Main.java:113)
C>> at uk.me.parabola.splitter.Main.main(Main.java:99)
C>> Drücken Sie eine beliebige Taste . . .
C>> Command was:
C>> java -Xmx%heap% -jar ..\tools\splitter.jar --mapid=1
C>> --split-file=newareas.list --max-nodes=%max_nodes%
C>> ..\osmdata\data.osm
C>> 
C>> newareas.list is a unmodified copy of areas.list.
C>> 
C>> Chris
C>> 






More information about the mkgmap-dev mailing list