jeffreycassidy / osm2bin

Parses OpenStreetMap .osm XML files, and extracts them to an efficient binary format using string tables. Developed for University of Toronto ECE297.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

osm2bin

Parses OpenStreetMap .osm XML files, and extracts them to an efficient binary format using string tables. Developed for University of Toronto ECE297.

The file osm2bin parses an XML file, either straight text .osm, or bzip2-compressed .osm.bz2. For now, it just parses and then shows some summary stats regarding the number of elements, the distinct tag keys found, and the a printout of some randomly-chosen node/way/rels.

The parseOSM routine can be customized

TODO

  • Emit .bin file using Boost::serialize
  • Import old code to create road network

About

Parses OpenStreetMap .osm XML files, and extracts them to an efficient binary format using string tables. Developed for University of Toronto ECE297.

License:Apache License 2.0


Languages

Language:C++ 96.6%Language:CMake 3.3%Language:Shell 0.1%