.activate_all_osm_railway_types()
OsmrailwaySettings method
Description
Option to activate all supported OSM railway types in the parser, resulting in the most detailed network possible. Note that this will - for example - also include miniature railways and narrow gauge tracks.
Signature
.activate_all_osm_railway_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 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
N/A
Source code
Class OsmRailwaySettingsWrapper in converterwrappers.py