.set_nodes_file_name(+)

GeometryNetworkWriterSettings method

Description

Set the file name to use for the GIS nodes output. The structure of each file name is set up as follows:

layer_<name_of_layer>_<user_defined_file_name>.shp,

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

Signature

.set_nodes_file_name(file_name: str)

with

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

Return type

N/A

Example

from planit import *

planit = Planit()

# network converter
network_converter = planit.converter_factory.create(ConverterType.NETWORK)

# PLANit reader
planit_reader = network_converter.create_reader(NetworkReaderType.PLANIT, AUSTRALIA)
planit_reader.settings.set_input_directory(PLANIT_INPUT_PATH)

# GeoIo (GIS geometry shape) writer
geo_writer = network_converter.create_writer(NetworkWriterType.SHAPE)
geo_writer.settings.set_output_directory(OUTPUT_PATH)

geo_writer.settings.set_nodes_file_name("my_links")

# perform conversion
network_converter.convert(planit_reader, geo_writer)

See also

N/A

Source code

Class GeometryNetworkWriterSettingsWrapper in converterwrappers.py