chenyuqi990215 / RNTrajRec

Road Network Enhanced Trajectory Recovery with Spatial-Temporal Transformer (ICDE'23)
MIT License
31 stars 9 forks source link

How to obtain edgeOSM.txt, nodeOSM.txt and wayTypeOSM.txt #9

Open bharathsudharsan opened 1 year ago

bharathsudharsan commented 1 year ago

Hi, great work! I have a basic query:

As explained in the preprocess directory, I am using osm2rn in this way: `python ./osm2rn/osm_to_rn.py --input_path ./michigan_map/michigan-latest.osm.pbf --output_path ./michigan_map/processed/

This is working fine and the output is 6 files namely: edges.dbf, edges.shx, edges.shp and nodes.dbf, nodes.shx, nodes.shp.

Now, I am wondering how to obtain the edgeOSM.txt, nodeOSM.txt and wayTypeOSM.txt files? Please help out.

Thanks in advance. `

chenyuqi990215 commented 1 year ago

Thanks for your interest in our work. You can use the code in preprocess/osmrn.py to convert the OSM.pbf file to our data format. If you have any questions about the code, please let us know!

lyh360121 commented 11 months ago

Thanks for your interest in our work. You can use the code in preprocess/osmrn.py to convert the OSM.pbf file to our data format. If you have any questions about the code, please let us know! I got an error in this line: from .const import candi_highway_types. Could you please tell me how to import from '.const'? Thank you!

chenyuqi990215 commented 11 months ago

Sorry for my mistake and I have uploaded the file.