Skip to content

Mengzhuoxiao/TSMM

 
 

Repository files navigation

TSMM

1- Develop Environment

  • 1-1 Installing Dependencies Osmium

2- Build

  • 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
    
    

3- Output

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

4- Processing display

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 90.0%
  • CMake 10.0%