logo separator

Creating pre-processed boundaries

10
Jan

In the past you have used the createboundsfile option to create preprocessed bounds used by mkgmap to assign correct address information. This option is now removed and replaced by a separate tool delivered with the common mkgmap download.

The following command chain is an example how to create preprocessed bounds for europe. Additionally to mkgmap you need the two tools osmconvert and osmfilter.

  1. Download the OSM europe extract
  2. Run osmconvert and osmfilter to extract all boundary information:
       osmconvert europe.osm.pbf --out-o5m >europe.o5m
       # The following should all be one line
       osmfilter europe.o5m --keep-nodes=
         --keep-ways-relations="boundary=administrative =postal_code postal_code="
         --out-o5m > europe-boundaries.o5m
    
  3. Start the new mkgmap bounds preprocessor:
       # The following should be all one line
       java -cp mkgmap.jar
         uk.me.parabola.mkgmap.reader.osm.boundary.BoundaryPreprocessor
         europe-boundaries.o5m
         europe_bounds
    
    This will create a directory called europe_bounds containing the preprocessed bounds which can be used with the bounds option on the mkgmap command line.
Posted by steve on 10 Jan 2013

Latest commits

  • mkgmap-r4262 improve default style (defaultStyleTidy3e.patch by Ticker Berkin with small modifications).
    11 jan 2019
  • mkgmap-r4261 don't treat amenity=shelter + shelter_type=public_transport like other shelters.
    07 jan 2019
  • mkgmap-r4260 prevent IndexOutOfBoundsException for special case where wrong house number intervals cause a road to be split into > 0x3ff segements..
    28 dec 2018
  • mkgmap-r4259 apply_first-v2.patch: Implement and document new apply_first style command..
    13 dec 2018
  • splitter-r592 route-complete.patch: Implement a new option --route-rel-values which tells splitter that route relations of the given type should be kept complete. ....
    13 dec 2018
See more...