.set_remove_dangling_subnetworks(+)

OsmNetworkReaderSettings method

Description

Indicate to remove dangling (sub)networks or not via this method. By default this is set to true.

Signature

.set_remove_dangling_subnetworks(remove:bool)

with

Parameter Type Unit Default Description
remove Boolean None True Indicate to remove identified dangling (sub)networks based on settings

Return type

N/A

Example 1

from planit import *

# create a network converter
planit_instance = Planit()
network_converter = planit_instance.converter_factory.create(ConverterType.NETWORK)

# example Open Street Map (OSM) network reader        
osm_reader = network_converter.create_reader(NetworkReaderType.OSM, "<country_name>")
osm_reader.settings.set_input_file("<path_to_input_file>")

# indicate to not remove any dangling subnetworks but keep all parsed infrastructure
osm_reader.set_remove_dangling_subnetworks(False)

See also

.set_discard_dangling_networks_above(+) .set_discard_dangling_networks_below(+)

Source code

Class OsmNetworkReaderSettingsWrapper in converterwrappers.py