.set_xml_file_extension(+)
PlanitZoningReaderSettings method
Description
Set the file extension to consider when exploring potential files in the input directory.
The default is .xml
but if for some reason the user has stored their zoning under a different extension it can
be configured via this method.
Signature
.set_xml_file_extension(extension:str)
with
Parameter | Type | Unit | Default | Description |
---|---|---|---|---|
extension |
String |
.xml |
N/A | The extension to use |
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