GeometryRoutedServicesWriterSettings

GeometryRoutedServicesWriterSettings instance

The GeometryRoutedServicesWriterSettings instance is accessible via the GeometryIntermodalWriter its .settings property. It allows the user to configure the routed services related output.

Minimum configuration requirements

All methods marked as Compulsory=YES in the Methods section are expected to be configured by the user explicitly.

Methods

A GeometryRoutedServicesWriterSettings instance exposes the following methods.

Name Compulsory Default Description
.set_output_directory(+) YES N/A Set the output directory to persist the output files to
.set_country(+) NO Context dependent Set the country the routedServices resides in, used to determine the coordinate reference system to apply
.set_persist_services(+) NO True Set flag indicating whether to persist each individually routed service or not
.set_services_file_name(+) NO planit_service Set file name (without path or extension) to use for services persistence

Getters exist for most basic setters as well, e.g., .is_persist_services(), however these are not yet documented explicitly.

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")

# perform conversion
converter.convert(planit_reader, geo_writer)

See also

GeometryRoutedServicesWriter geometry (GIS) routedServices writer class these settings reside on

Source code

Class GeometryRoutedServicesWriterSettingsWrapper in converterwrappers.py


.set_country(+)

GeometryRoutedServicesWriterSettings method

.set_output_directory(+)

GeometryRoutedServicesWriterSettings method

.set_persist_services(+)

GeometryRoutedServicesWriterSettings method

.set_services_file_name(+)

GeometryRoutedServicesWriterSettings method