.set_persist_services(+)

GeometryRoutedServicesWriterSettings method

Description

Indicate whether to persist service (or not).

Signature

.set_persist_services(flag: bool)

with

Parameter Type Unit Default Description
flag bool None True The flag to indicate the choice

Return type

N/A

Example

from planit import *

planit = Planit()

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

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

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

# Switch off persistence of routed services
geo_writer.settings.routed_services_settings.set_persist_services(False)

# perform conversion
converter.convert(planit_reader, geo_writer)

See also

N/A

Source code

Class GeometryNetworkWriterSettingsWrapper in converterwrappers.py