.network_settings

MatsimIntermodalWriterSettings property
Description

The .network_settings property allows access to the MatsimNetworkWriterSettings and is present on the MatsimIntermodalWriterSettings. These settings are identical to the settings on the MatsimNetworkWriter since under the hood the MatsimIntermodalWriter utilises the MatsimNetworkWriter for the persistence of the physical road and rail network and is therefore configured via the same settings, accessible via this property.

Return type

MatsimNetworkWriterSettings

Example 1

from planit import *

# create a network 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>")

# MATSIM intermodal writer
matsim_writer = intermodal_converter.create_writer(IntermodalWriterType.MATSIM)
matsim_writer.settings.set_output_directory("<path_to_output_dir>")

# access network specific settings for configuration
matsim_writer.settings.network_settings.set_output_file("my_network_output")

# perform conversion
intermodal_converter.convert(osm_reader,matsim_writer)

See also

MatsimNetworkWriterSettingsfor the network specific settings available

Source code

Class MatsimIntermodalWriterSettingsWrapper in converterwrappers.py

Last modified January 1, 0001