.deactivate_all_osm_water_modes_except(+)
OsmWaterwaySettings method
Description
Deactivate all OSM water modes except the ones indicated.
Currently, ferry is the only water mode considered, so likely there is no need to use this method at this point
Signature
.deactivate_all_osm_water_modes_except(modes: List[str])
with
Parameter | Type | Unit | Default | Description |
---|---|---|---|---|
modes |
List of String |
None |
N/A | OSM water modes that are not to be deactivated |
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>")
# deactivate all modes except ferry
osm_reader.settings.activate_waterway_parser(True)
osm_reader.settings.waterway_settings.deactivate_all_osm_water_modes_except(["ferry"])
See also
N/A
Source code
Class OsmWaterwaySettingsWrapper
in converterwrappers.py