Skip to content

Sat2Graph's TOPO with support for python3 and text input files

License

Notifications You must be signed in to change notification settings

Erfanh1995/Sat2GraphTOPO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TOPO Usage

"Here, the graph files gt.p and prop.p are all in the same format as what we used in Sat2Graph - a python dictionary where each key is the coordinate of a vertex (denoted by x) and the corresponding value is a list of x's neighboring vertices."

All rights for the topo algorithm and its documentations go to the authors and creators of Sat2Graph (Songtao He and his collaborators). Link to the main repo.

txt2RoadGraph is a tool I have created for conversions from text-based graphs to a pickle file containing a RoadGraph object, suitable for this TOPO evaluation. Simply put your vertices.txt and edges.txt in the same directory and convert them to a pickle file:

python3 txt2RoadGraph.py

Then you are all set to start the evaluation:

python3 main.py -graph_gt data/chicago_osm -graph_prop data/chicago_james -output toporesult.txt

TOPO Parameters

Parameters Note
Propagation Distance 300 meters for large tiles and 150 meters for small tiles (see line 127-130 in main.py)
Propagation Interval Default is 5 meters. Config with -interval flag.
Matching Distance Threshold Default is 10 meters. Config with -matching_threshold flag.
Matching Angle Threshold 45 degrees
One-to-One Matching True

Dependency

  • hopcroftkarp
  • rtree
  • pyproj (for txt2RoadGraph)

About

Sat2Graph's TOPO with support for python3 and text input files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages