-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: add demo OSM network download wrapper
- Loading branch information
1 parent
53a08cb
commit 7ab9f1e
Showing
3 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export RAW_NETWORK=demo_raw_network.osm | ||
export CLEAN_NETWORK=demo_clean_network.osm | ||
export FINAL_NETWORK=demo_network.net.xml | ||
|
||
export BBOX=47.6985415483953190,11.8014099151749789,47.9689446658581744,12.2510342616238823 | ||
|
||
python3 downloadNetwork.py | ||
osmfilter $RAW_NETWORK --keep="highway" --drop="highway=footway =service =steps =bridleway =construction =path =proposed =raceway =track =barrier =living_street =raceway =corridor" > $CLEAN_NETWORK # =unclassified =residential =cycleway =pedestrian | ||
netconvert --osm-files $CLEAN_NETWORK --remove-edges.isolated --ramps.guess --roundabouts.guess --edges.join --join-lanes --tls.guess.joining --junctions.join --junctions.join-dist 50 --no-turnarounds.except-turnlane --geometry.avoid-overlap --ramps.no-split --geometry.remove --tls.discard-simple --tls.guess-signals --tls.join --no-internal-links -o $FINAL_NETWORK |