mapteksdk.data.units module

Units and other enumrations for file operations.

NO_UNIT = 'NO_UNIT'

Placeholder used to represent the absence of a unit.

class UnsupportedUnit(unit_string)

Bases: object

Class representing an unsupported unit.

Parameters:

unit_string (str) –

unit_string: str

String representation of the unsupported unit.

class Axis(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

Enum used to choose an axis.

X = 0
Y = 1
Z = 2
class DistanceUnit(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

Enum representing distance units supported by the Project.

UNKNOWN = -1
ANGSTROM = 301
PICOMETRE = 316
NANOMETRE = 302
MICROMETRE = 303
MILLIMETRE = 304
CENTIMETRE = 305
DECIMETRE = 306
METRE = 307
DECAMETRE = 308
HECTOMETRE = 309
KILOMETRE = 310
MEGAMETRE = 311
GIGAMETRE = 312
ASTRONOMICAL_UNIT = 313
LIGHT_YEAR = 314
PARSEC = 315
MICROINCH = 351
THOU = 352
INCH = 353
FEET = 354
CHAIN = 357
YARD = 358
FATHOM = 359
MILE = 360
US_SURVEY_INCH = 361
US_SURVEY_FEET = 362
US_SURVEY_YARD = 363
NAUTICAL_MILE = 364
metre = 307
millimetre = 304
feet = 354
yard = 358
class AngleUnit(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

Enum representing the angle units supported by the Project.

UNKNOWN = -1
RADIANS = 101
DEGREES = 102
ARCMINUTES = 103
ARCSECONDS = 104
NATO_MILS = 109
SOVIET_MILS = 110
MILS = 111
GRADIANS = 107
GONS = 108