.network_settings
MatsimIntermodalWriterSettings property
The MatsimIntermodalWriterSettings
instance is accessible via the MatsimIntermodalWriter
its .settings
property. It allows the user to configure the MatsimIntermodalWriter. We differentiate between:
The network oriented settings are identical to the settings exposed by the MatsimNetworkWriter and are described in detail under MatsimNetworkWriterSettings. These settings configure everything related to the physical road and/or rail network.
The zoning (public transport) settings are additional settings for the physical infrastructure directly related to the intermodal aspect of the writer, i.e., the persistence of bus stops, train stations, platforms, etc. This information is extracted from Planit’s intermodal zoning component, e.g., transfer zones, and connectoids (hence its categorisation under zones).
All methods marked as Compulsory=YES
in the Methods section are expected to be configured by the user explicitly.
A MatsimIntermodalWriterSettings
instance exposes the following methods.
Name | Compulsory | Default | Description |
---|---|---|---|
.set_country(+) |
NO | Context dependent | Set the country the intermodal network resides in, used to determine the coordinate reference system to apply |
.set_output_directory(+) |
YES | N/A | Set the output directory to persist the Matsim output files to |
This class exposes the following properties
Property | Availability | Description |
---|---|---|
.network_settings |
Always | Settings specific to physical road infrastructure |
.zoning_settings |
Always | Settings specific to intermodal public transport transfer (zones) infrastructure |
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>")
# perform conversion
intermodal_converter.convert(osm_reader,matsim_writer)
MatsimIntermodalWriter
Matsim intermodal writer class these settings reside on
Class MatsimIntermodalWriterSettingsWrapper
in converterwrappers.py
MatsimIntermodalWriterSettings property
MatsimNetworkWriterSettings method
MatsimNetworkWriterSettings method
MatsimIntermodalWriterSettings property
MatsimZoningWriterSettings instance