.set_input_directory(+)

PlanitZoningReaderSettings method

Description

Set the input directory to use by the PlanitZoningReader for the zoning. This is a mandatory setting the user is expected to set (unless the zoning is embedded in another reader, in that case the input directory is already set at the parent settings class).

The reader will then look through the available files, and use the first suitable file that is compatible with the native zoning XML format.

Signature

.set_input_directory(input_dir:str)

with

Parameter Type Unit Default Description
input_dir String None N/A The input directory to extract the (intermodal) zoning from

Return type

N/A

Example 1

from planit import *

# create a zoning converter
planit_instance = Planit()
converter = planit_instance.converter_factory.create(ConverterType.ZONING)

# prerequisite network reader
# PLANIT_INPUT_PATH = ...
planit_net_reader = planit_instance.converter_factory.create(ConverterType.NETWORK).create_reader(NetworkReaderType.PLANIT)
planit_net_reader.settings.set_input_directory(PLANIT_INPUT_PATH)

# PLANit zoning reader        
planit_reader = converter.create_reader(ZoningReaderType.PLANIT, planit_net_reader)
planit_reader.settings.set_inputdirectory(PLANIT_INPUT_PATH)

See also

N/A

Source code

Class ReaderSettingsWrapper in converterwrappers.py