OSMViewer

From OpenStreetMap Wiki
Jump to: navigation, search
For the editor for iOS, see geoMapTool.

Yet another Qt4-using OSM tool.

Features

  • Flat-file database
  • R-tree indices
  • Routing
  • Search on names (including POIs and areas)
  • Support for areas and POIs
  • just 8.3k LOC (including osmtool)

Getting it

Requirements:

  • Qt4
  • Proj.4
  • Expat
  • a working C++ toolchain
$ darcs get http://www.gabrielebner.at/repos/osmtool/
$ cd osmtool
$ make
$ ./osmtool -ixml .../planet-061023-east.osm \
    -subset -30 -90 180 90 -obin ../planet.bin
  # This takes around 50s for everything from 30W eastwards
  # or around 10m for the whole planet.
  # You can also use '-' as the first argument to let it read
  # from stdin.
$ cd ..
$ darcs get http://www.gabrielebner.at/repos/osmviewer/
$ cd osmviewer
$ make    # or make MOC=moc-qt4 if you're on debian
$ ./ov-writer proc ../planet.bin test.bin
  # This takes pretty much as long as the osmtool run.
$ ./ov-viewer

Bugs

  • dirty, inconsistently written code
  • no documentation
  • hacky GUI, no i18n
  • doesn't use autotools