.set_output_directory(+)
PlanitNetworkWriterSettings method
Description
Set an output directory to use for the network output file to be persisted in. This settings is expected to be explicitly set by the user, otherwise the writer will fail.
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 a network converter
planit_instance = Planit()
network_converter = planit_instance.converter_factory.create(ConverterType.NETWORK)
# Open Street Map (OSM) network reader
osm_reader = network_converter.create_reader(NetworkReaderType.OSM, "<country_name>")
osm_reader.settings.set_input_file("<path_to_input_file>")
# Planit network writer
planit_writer = network_converter.create_writer(NetworkWriterType.PLANIT)
planit_writer.settings.set_output_directory("<path_to_output_dir>")
# perform conversion
network_converter.convert(osm_reader,planit_writer)
See also
N/A
Source code
Class WriterSettingsWrapper
in converterwrappers.py