.set_persist_nodes(+)
GeometryNetworkWriterSettings method
Description
Indicate whether to persist nodes (or not).
Signature
.set_persist_nodes(flag: bool)
with
Parameter | Type | Unit | Default | Description |
---|---|---|---|---|
flag |
bool |
None |
True |
The flag to indicate the choice |
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)
# disable persisting links
geo_writer.settings.set_persist_nodes(False)
# perform conversion
network_converter.convert(planit_reader, geo_writer)
See also
N/A
Source code
Class GeometryNetworkWriterSettingsWrapper
in converterwrappers.py