.activate_all_osm_waterway_types()
OsmWaterwaySettings method
Description
Option to activate all supported OSM waterway types in the parser, resulting in the most detailed network possible.
Signature
.activate_all_osm_waterway_types()
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)
# 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 activate all supported OSM waterway types
osm_reader.settings.activate_waterway_parser(True)
osm_reader.settings.railway_settings.activate_all_osm_waterway_types()
See also
N/A
Source code
Class OsmWaterwaySettingsWrapper in converterwrappers.py