GeometryIntermodalWriterSettings

GeometryIntermodalWriterSettings instance

The GeometryIntermodalWriterSettings instance is accessible via the GeometryIntermodalWriter its .settings property. It allows the user to configure the GeometryIntermodalWriter. We differentiate between:

The network settings are identical to the settings exposed by the GeometryNetworkWriter These settings configure everything related to exporting the physical road, rail, ferry network.

The zoning (od and transfer zone) settings are identical to the settings exposed by the GeometryZoningWriter These settings configure everything related to exporting the origin-destination zones as well as transfer zones, e.g., the persistence of bus stops, train stations, platforms, etc. In addition it allows for persisting the virtual network connecting hte physical network to the zones.

The service network settings reflect the settings regarding exporting the service network on which routed service run (and which in turn is superimposed on the physical road network).

The routed services settings reflect the settings regarding exporting the public transport services.

Minimum configuration requirements

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

Methods

A GeometryIntermodalWriterSettings instance exposes the following methods.

Name Compulsory Default Description
.set_country(+) NO Context dependent Set the country the intermodal network resides in, used to determine the coordinate reference system to apply
.set_output_directory(+) YES N/A Set the output directory to persist the output files to

These methods are transitively applied to the underlying settings of the network, zoning, service network, and routed services when they are set by the user.

Properties

This class exposes the following properties

Property Availability Description
.network_settings Always Settings specific to physical road infrastructure
.zoning_settings Always Settings specific to origin-destination and transfer (zones)
.service_network_settings Always Settings specific to service network persistence
.routed_services_settings Always Settings specific to routed services such as public transport lines

Example 1 - Minimum required settings

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

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

See also

GeometryIntermodalWriter geometry (GIS) intermodal writer class these settings reside on

Source code

Class GeometryIntermodalWriterSettingsWrapper in converterwrappers.py


.network_settings

GeometryIntermodalWriterSettings property

.routed_services_settings

GeometryIntermodalWriterSettings property

.service_network_settings

GeometryIntermodalWriterSettings property

.set_country(+)

GeometryIntermodalWriterSettings method

.set_output_directory(+)

GeometryIntermodalWriterSettings method

.zoning_settings

GeometryIntermodalWriterSettings property