- 1-1 Installing Dependencies Osmium
-
2-0 open main.cpp and change the osmPath to your osmPath.
int main(int argc, char* argv[]) { std::string osmPath = "path_to_your_osm_file"; /// change it to your osm Path OSMManager* osmManager = new OSMManager(osmPath); osmManager->initialize(); delete osmManager; }
-
2-1 create a build folder
mkdir -p build cd build
-
2-2 execute CMake command.
cmake -DCMAKE_BUILD_TYPE=DEBUG -S ../ -B ./
-
2-3 run make and wait for the build to finish
make -j4
-
2-4 executable can be found in the build folder
./tsmm
After running ./tsmm you can get all intermediate results in outputOSM folder, and 12_final__allLayer.som is the final simplified road network. You can find the detailed infomation on these intermediate resutls in our paper.
- 01_link_ways__allLayer.osm
- 02_first_buffer__allLayer.osm
- 03_re_buffer__allLayer.osm
- 05_extend__allLayer.osm
- 07_insert__allLayer.osm
- 08_del_redundant__allLayer.osm
- 09_merge__allLayer.osm
- 10_clean__allLayer.osm
- 12_final__allLayer.osm