.set_output_directory(+)

PlanitNetworkWriterSettings method

Description

Set an output directory to use for the PLANit output files to be persisted in. This settings is expected to be explicitly set by the user, otherwise the writer will fail. Chosen directory is passed on to the underlying network and zoning (settings) automatically.

Signature

.set_output_directory(output_dir:str)

with

Parameter Type Unit Default Description
output_dir String None N/A The output directory to use

Return type

N/A

Example 1 - minimum configuration

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>")

# perform conversion
intermodal_converter.convert(osm_reader,planit_writer)

See also

N/A

Source code

Class PlanitIntermodalWriterSettingsWrapper in converterwrappers.py

Last modified January 1, 0001