.network_settings

GeometryIntermodalWriterSettings property
Description

The .network_settings property allows access to the GeometryNetworkWriterSettings and is present on the GeometryIntermodalWriterSettings. These settings are identical to the settings on the GeometryNetworkWriter since under the hood the GeometryIntermodalWriter utilises the GeometryNetworkWriter for the persistence of the physical road, rail, and ferry network and is therefore configured via the same settings, accessible via this property.

Return type

GeometryNetworkWriterSettings

Example 1

from planit import *

planit = Planit()

# intermodal converter
intermodal_converter = planit.converter_factory.create(ConverterType.INTERMODAL)

# PLANit reader
planit_reader = intermodal_converter.create_reader(IntermodalReaderType.PLANIT, AUSTRALIA)
planit_reader.settings.set_input_directory(PLANIT_INPUT_PATH)

# GeoIo (GIS geometry shape) writer
geo_writer = intermodal_converter.create_writer(IntermodalWriterType.SHAPE)
geo_writer.settings.set_output_directory(OUTPUT_PATH)
geo_writer.settings.set_country("Australia")

# access GIS network settings
geo_writer.settings.network_settings.<some_method>

# perform conversion (with pt services)
intermodal_converter.convert_with_services(planit_reader, geo_writer)

See also

N/A

Source code

Class GeometryIntermodalWriterSettingsWrapper in converterwrappers.py