.settings
PlanitIntermodalReader property
The PlanitIntermodalReader
class instance can be created via the IntermodalConverter
. It provides the functionality to parse a Planit intermodal network and zoning (including transfer zones representing the intermodal component).
All configuration of this reader is performed via its .settings
property, providing access to the PlanitIntermodalReaderSettings
.
The Planit intermodal reader defaults are bassed on the settings of the two underlying readers (network and zoning). The user can change these defaults if they deem this necessary via their respective settings that are in turn are made available via the intermodal reader settings property.
If, after reading the documentation, you are still unsure what defaults are adopted, have a look at the generated logs when using the reader. Planit will log the majority of the adopted defaults in its output when performing the OSM intermodal network reading.
The user is required to explicitly configure at least the following settings on an PlanitIntermodalReader
:
.settings.set_input_directory(+)
N/A
This class exposes the following properties:
Property | Availability | Description |
---|---|---|
.settings |
Always | Access to PlanitIntermodalReaderSettings to configure the reader |
from planit import *
# create an intermodal converter
planit_instance = Planit()
intermodal_converter = planit_instance.converter_factory.create(ConverterType.INTERMODAL)
# PLANit intermodal reader
planit_reader = intermodal_converter.create_reader(IntermodalReaderType.PLANIT)
planit_reader.settings.set_input_directory("<path_to_input_files>")
# Matsim intermodal writer
matsim_writer = intermodal_converter.create_writer(IntermodalReaderType.MATSIM)
matsim_writer.settings.set_output_directory("<path_to_output_dir>")
# perform conversion
intermodal_converter.convert(planit_reader,matsim_writer)
PlanitIntermodalReaderSettings
for configuration of the Planit intermodal reader
ConverterFactory
for the converter factory to create other types of converters
IntermodalReaderType
for the supported intermodal reader types
IntermodalWriterType
for the supported intermodal writer types
Class PlanitIntermodalReaderWrapper
in converterwrappers.py
PlanitIntermodalReader property