OsmWaterwaySettings

OsmWaterwaySettings instance

The OsmWaterwaySettings are accessible via the OsmNetworkReaderSettings.waterway_settings property. It allows the user to configure the settings specific to OSM entities that are tagged as route=ferry and/or ferry=<osm_highway_type which means all waterway based routes mapped out in OSM.

Methods

A OsmWaterwaySettings instance exposes the following methods.

Name Default Description
.activate_all_osm_waterway_types() N/A Activate all supported OSM waterway types
.activate_osm_water_mode(+) N/A Activate indicated OSM water mode
.activate_osm_waterway_types(+) N/A Activate OSM waterway types indicated
.activate_osm_waterway_type(+) N/A Activate OSM waterway type indicated
.deactivate_all_osm_water_modes_except(+) N/A Deactivate all OSM water modes except the ones indicated
.deactivate_all_osm_water_modes() N/A Deactivate all OSM water modes
.deactivate_all_osm_waterway_types_except(+) N/A Deactivate all supported OSM waterway types except the ones indicated
.deactivate_osm_water_modes(+) N/A Deactivate indicated OSM water modes
.deactivate_osm_water_mode(+) N/A Deactivate indicated OSM water mode
.deactivate_osm_waterway_type(+) N/A Deactivate OSM waterway type
.get_default_speed_limit_by_osm_waterway_type(+) N/A Collect the default speed limit (km/h) for a given OSM waterway type
.is_osm_waterway_type_deactivated(+) N/A Verify if OSM waterway type is deactivated
.is_osm_waterway_type_activated(+) N/A Verify if OSM waterway type is activated
.overwrite_capacity_max_density_defaults(+) N/A Overwrite the default capacity (pcu/h/lane) max density (pcu/km/lane) for a given OSM waterway type

Properties

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 activate all supported OSM railway types for parsing all rail based infrastructure
osm_reader.settings.activate_railway_parser(True)
osm_reader.settings.railway_settings.activate_all_osm_railway_types()

See also

NetworkReaderSettings parent settings class
OsmHighwaySettings settings for OSM highways

Source code

Class ReaderSettingsWrapper in converterwrappers.py


.activate_all_osm_waterway_types()

OsmWaterwaySettings method

.activate_osm_water_mode(+)

OsmWaterwaySettings method

.activate_osm_waterway_type(+)

OsmWaterwaySettings method

.activate_osm_waterway_types(+)

OsmWaterwaySettings method

.deactivate_all_osm_water_modes_except(+)

OsmWaterwaySettings method

.deactivate_all_osm_water_modes()

OsmWaterwaySettings method

.deactivate_all_osm_waterway_types_except(+)

OsmWaterwaySettings method

.deactivate_osm_water_mode(+)

OsmWaterwaySettings method

.deactivate_osm_water_modes(+)

OsmWaterwaySettings method

.deactivate_osm_waterway_type(+)

OsmWaterwaySettings method

.get_default_speed_limit_by_osm_waterway_type(+)

OsmWaterwaySettings method

.is_osm_waterway_type_activated(+)

OsmWaterwaySettings method

.is_osm_waterway_type_deactivated(+)

OsmWaterwaySettings method

.overwrite_capacity_max_density_defaults(+)

OsmWaterwaySettings method