[locator] Boundary file GPX converter

I have committed a converter that converts one or more precompiled boundary files to GPX files. This is necessary to answer the numerous questions "Why is this street not mapped to town A" etc. It is also very useful for the development. How does it work? Call java -cp mkgmap.jar uk.me.parabola.mkgmap.reader.osm.boundary.BoundaryFile2Gpx bounds_200000_50000.bnd This creates a GPX files from the boundary file named gpx/bounds_200000_50000.bnd/admin_level=<L>/<L>_<id>_<O>_<n>.gpx where <L> = admin_level <id> = boundary id (r3000 = Relation 3000; w29945 = way 29945) <O> = o means outer boundary, i means inner boundary (same meaning as in multipolygons) <n> = an ascending number within each id The GPX files makes it easy to analyze the files with JOSM or any other GPX viewer. By the way: This is a PERFECT place for anyone who want to start with mkgmap source code contributions. Having a few Java experiences you can start here to improve the converter or for example to write a check tool that outputs uncovered areas for each admin_level. If you have any question about that feel free to ask me. It's really not very complicated. WanMil

Hi Wanmil, I extracted bounds_2400000_200000.bnd, found a lot of gpx files in admin_level=10, and searched for a 'problematic' relation r297049, which I found there: 10_r297049_o_0.gpx Opened it and nothing seems wrong with it. And yet there is not one street within this relation that is matched with the place name. It's not clear what to do with those gpx files.

Hi Wanmil, I extracted bounds_2400000_200000.bnd, found a lot of gpx files in admin_level=10, and searched for a 'problematic' relation r297049, which I found there: 10_r297049_o_0.gpx Opened it and nothing seems wrong with it. And yet there is not one street within this relation that is matched with the place name. It's not clear what to do with those gpx files.
Minko, the GPX files are a first tool for debugging what happens. If you see that a given relation 297049 is in the .bnd file and covers the correct area than the problem must be elsewhere in the code. Now you might start with the logfile of mkgmap. Set the log level of the class uk.me.parabola.mkgmap.reader.osm.LocationHook to FINE. You will get a really big logfile in which all assignments of the mkgmap:admin_levelX tags are logged. Unfortunately the element ids are not logged but the tags of the ways. So you might search for the name of your street in the logfiles. WanMil
participants (2)
-
Minko
-
WanMil