Skip to content

faq 71532556

Billy Charlton edited this page Sep 5, 2018 · 2 revisions

How to deal with disconnected network "islands"?

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?

Comments: 1


Re: How to deal with disconnected network "islands"?

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 RunPNetworkGeneratorRunCreateNetworkRunNetworkEmme2MatsimExample

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.  

Clone this wiki locally