.set_services_file_name(+)

GeometryRoutedServicesWriterSettings method

Description

Set the file name to use for the GIS routed services output (one per mode, per layer). The structure of each file name is set up as follows:

layer_<name_of_layer>_mode_<name_of_mode>_<user_defined_file_name>.shp,

We prefix by the layer and mode as to avoid name clashes in case the network has multiple (PLANit) layers and modes.

Signature

.set_services_file_name(file_name: str)

with

Parameter Type Unit Default Description
file_name str None planit_service The file name to use

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_services_file_name(`my_name`)

# perform conversion
converter.convert(planit_reader, geo_writer)

See also

N/A

Source code

Class GeometryRoutedServicesWriterSettingsWrapper in converterwrappers.py