Considerando che il file bz2 è grande quasi il doppio e che a scompattarlo il mio pc ci mette quasi 10 minuti,la compilazione dell' Italia intera finisce per convenire...
Per il tuo scopo puoi usare lo splitter:
Usage: java [JAVA_OPTIONS] -jar splitter.jar [OPTIONS] input_file (*.osm or *.pbf)
Options:
--cache Deprecated, now does nothing
--description A default description to give to each area.
--geonames-file The name of a GeoNames file to use for determining tile names. Typically cities15000.zip from
http://download.geonames.org/export/dump/
--legacy-mode Enables the old area subdivision algorithm in case of compatibility problems. This requires lots of memory! Deprecated, will be removed in a future version.
--mapid The starting map ID. Default is 63240001.
--max-areas The maximum number of areas to process in a single pass. More areas require more memory, but less time. Values: 1-2048. Default is 255.
--max-nodes The maximum number of nodes permitted in each split area. Default is 1600000.
--max-threads The maximum number of threads used by splitter. Default is auto.
--mixed Specify this if the input osm file has nodes, ways and relations intermingled.
--no-trim Don't trim empty space off the edges of tiles.
--output The output type, either pbf or xml. Default is pbf.
--output-dir The path to the output directory. Defaults to the current working directory.
--overlap Nodes/ways/rels that fall outside an area will still be included if they are within this many map units. Default is 2000.
--resolution The resolution of the overview map to be produced by mkgmap. Default is 13.
--split-file The name of a file containing the areas definitions. Can be .list or .kml. Providing such a file will save processing time.
--status-freq Displays the amount of memory used by the JVM every --status-freq seconds. Set =0 to disable. Default is 120.
--write-kml The name of a kml file to write out the areas to. This is in addition to areas.list (which is always written out).
usando l'opzione --split-file, passandogli un file .list tipo areas.list (questo è quello che mi ha prodotto ieri)
# List of areas
# Generated Fri Dec 14 14:52:53 CET 2012
#
69010001: 2060288,471040 to 2076672,507904
# : 44.208984,10.107422 to 44.560547,10.898438
69010002: 2060288,561152 to 2105344,585728
# : 44.208984,12.041016 to 45.175781,12.568359
che contiene il dettaglio dello splitting in tiles.
Ne metti una sola (usa un nome diverso da areas.list) e dopo qlc prova hai risolto
(e lo splitting verrà prodotto in alcuni secondi)
inoltre mkgmap accetta i pbf splittati senza problemi.
Ti conviene aggiornare i tuoi scripts