Skip to main content

I have a dataset of local roads, which I want to use for ShortestPathFinder.

 

The road network includes roads on islands, and those roads are not connected to the roads on the mainland.

Is there a transformer that can output only those roads that are part of the mainland road network? I want to eliminate the islands.

You can use the NetworkTopologyCalculator to find all the "self-contained" networks and then only keep the one with the largest number of roads (group by _network_id).


If your from-to lines are all points on the mainland network then there shouldn't be an issue using this as a network in the ShortestPathFinder without removing the island road networks


Reply