geofabrik / morituri

Converter for commercial geo data. Converts into OSM compatible format to be able to use OSM tools on commercial data.
GNU General Public License v3.0
33 stars 9 forks source link

morituri -- the COMMercial2OSM converter

comm2osm creates an OSM (OpenStreetMap) PBF/XML/etc. file from commercial shapefiles to be able to use OSM tools on the data.

Build Status

The architecture is plugin based. Currently there is a plugin (navteq) for converting routable Navteq data from the "NAVSTREETS Street Data Reference Manual v5.4" format into OSM format.

WARNING: DO NOT UPLOAD CONVERTED DATA TO OSM. Even if you were legally allowed to do so, imports into OSM are problematic due to the following reasons:

Prerequisites

For Testing

Ubuntu install instructions: (tested with 14.04.2 LTS)

CAUTION: Have a look at install_prerequisites.sh before executing it.

Install prerequisits with the install_prerequisites.sh. You may have to make this executable (e.g. with chmod +x install_prerequisites.sh).

build with: make -j2

run with: ./comm2osm /path/to/navteq/data/ output_file.{desired-output-format}

e.g. ./comm2osm ~/navteq-testdata/ ~/navteq-testdata/routable.osm to produce an XML file
or ./comm2osm ~/navteq-testdata/ ~/navteq-testdata/routable.pbf to produce a PBF file.

Test data

If you want to test this program and you don't have data of your own you may get sample downloads from the following list:


For users

Output has been tested with:

Issues:

Maperitive:

Simplifications:

Limitations:

Notes:


For developers

Feel free to add plugins to convert data from other suppliers.
There is only a single real test. More tests are welcome.

Notes:

Pitfalls:


Testing

Testing is done with Catch. Currently we are using this Catch fork so that eclipse can process catch.hpp correctly. Also see this pull request. As soon as eclipse fixes this issue you may switch to the Catch master branch.

If you run tests from terminal use the project root directory and call it with:

./tests/navteq_test

If you run tests with eclipse simply execute the test-binary.

Tests are currently only covering the z_level mapping from Navteq nodes to OSM ways.

More tests are welcome.

License

morituri is licensed under the GNU General Public License v3 (GPL-3). See LICENSE.txt.

Credits

morituri was developed at Geofabrik as part of the TOTARI project, which is sponsored by the German Ministry of Education and Research (Bundesministeriums für Bildung und Forschung)


Das diesem Bericht zugrundeliegende Vorhaben wurde mit Mitteln des Bundesministeriums für Bildung und Forschung unter dem Förderkennzeichen 01IS13033D gefördert. Die Verantwortung für den Inhalt dieser Veröffentlichung liegt beim Autor.