.network_settings
PlanitIntermodalWriterSettings property
Description
The .network_settings property allows access to the PlanitNetworkWriterSettings
and is present on the PlanitIntermodalWriterSettings. These settings are identical to the settings on the
PlanitNetworkWriter since under the hood the PlanitIntermodalWriter utilises the PlanitNetworkWriter for the
persistence of the physical road and rail network and is therefore configured via the same settings.
Return type
Example 1
from planit import *
# create an intermodal converter
planit_instance = Planit()
intermodal_converter = planit_instance.converter_factory.create(ConverterType.INTERMODAL)
# Open Street Map (OSM) intermodal reader
osm_reader = intermodal_converter.create_reader(IntermodalReaderType.OSM, "<country_name>")
osm_reader.settings.set_input_file("<path_to_input_file>")
# PLANit intermodal writer
planit_writer = intermodal_converter.create_writer(IntermodalWriterType.PLANIT)
planit_writer.settings.set_output_directory("<path_to_output_dir>")
# set network specific settings for configuration
planit_writer.settings.network_settings.set_output_dir("my_network_dir")
# perform conversion
intermodal_converter.convert(osm_reader,planit_writer)
See also
PlanitNetworkWriterSettingsfor the network specific settings available
Source code
Class PlanitIntermodalWriterSettingsWrapper in converterwrappers.py