LengthUnits.<enum>

LengthUnits types

Description

Class exposing the length units available to the TNTP network reader unit configuration.

Fields

<enum> Fields Description Instance documentation
KM kilometre units
M meters units
MILES miles units
FEET feet units

Example 1

from planit import *

# create a network converter
planit_instance = Planit()
network_converter = planit_instance.converter_factory.create(ConverterType.NETWORK)

# TNTP network reader        
reader = network_converter.create_reader(NetworkReaderType.TNTP)
reader.settings.set_length_units(LengthUnits.MILES)

See also

N/A

Source code

Class LengthUnits in enums.py