-
Notifications
You must be signed in to change notification settings - Fork 180
faq 71532556
Billy Charlton edited this page Sep 5, 2018
·
2 revisions
by Kai Nagel on 2016-07-04 19:10:52
(kn proxying for Rolf Moeckel)
- OSM has a lot of network links that are disconnected from the main network (such as walking paths in a backyard of a church, see attached screenshot). When we connect zone centroid with the network, some centroids connect to such disconnected parts of the network. Is there a way to connect each centroid to the principal network only?
by Kai Nagel on 2016-07-04 19:12:11
One option is NetworkCleaner
, under org.matsim.run
. Examples are unter tutorial....
in the classes RunPNetworkGenerator
, RunCreateNetwork
, RunNetworkEmme2MatsimExample
.
A way to run this from the command line is
java -cp matsim-*.jar org.matsim.run.NetworkCleaner input-network-file output-network-file
A short help message is given by calling it without arguments:
java -cp matsim-*.jar org.matsim.run.NetworkCleaner
Note that this is not an exact answer to the above question: It will completely remove all disconnected smaller islands from the network.
You are viewing an archive of the previous MATSim Q&A site. The real site is now at https://matsim.org/faq