.set_country(+)

MatsimPtServicesWriterSettings method

Description

Set the destination country of the to be generated MATSim pt schedule file by the MatsimIntermodalWriter. This country name is used to determine the best possible coordinate reference system (projection) to use for the geometry information of the network.

If the country is not set by the user, the choice for the destination coordinate reference system is based on the coordinate reference system of the source network that is to be persisted. This is likely sufficient in most cases, but sometimes a country specific projection is required in which case the country can be provided here.

Whenever a country name is to be supplied, make sure this name complies with the ISO 3166 standard (see for example https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes ).

Discouraged to be used, as it is recommended to set the equivalent parent writer property instead, e.g. the MATSim intermodal writer setting for this same property since this will update the value for both the network and zoning writer simultaneously.

Signature

.set_country(country_name:str)

with

Parameter Type Unit Default Description
country_name String None Context dependent The destination country name (ISO 3166)

Return type

N/A

See also

N/A

Source code

Class WriterSettingsWrapper in converterwrappers.py