MetadataClassProperty

A metadata property, as part of a MetadataClass.

See the 3D Metadata Specification for 3D Tiles

See also

Constructors

Link copied to clipboard

Types

Link copied to clipboard
external interface ConstructorOptions

Properties

Link copied to clipboard
external val arrayLength: Int

The number of array elements. Only defined for fixed-size arrays.

Link copied to clipboard

The component type of the property. This includes integer (e.g. INT8 or UINT16), and floating point (FLOAT32 and FLOAT64) values

Link copied to clipboard
external val default: JsAny

A default value to use when an entity's property value is not defined.

Link copied to clipboard
external val description: String

The description of the property.

Link copied to clipboard
external val enumType: MetadataEnum

The enum type of the property. Only defined when type is ENUM.

Link copied to clipboard
external val extensions: JsAny

An object containing extensions.

Link copied to clipboard
external val extras: JsAny

Extra user-defined properties.

Link copied to clipboard
external val id: String

The ID of the property.

Link copied to clipboard
external val isArray: Boolean

True if a property is an array (either fixed length or variable length), false otherwise.

Link copied to clipboard

True if a property is a variable length array, false otherwise.

Link copied to clipboard
external val max: JsAny

A number or an array of numbers storing the maximum allowable value of this property. Only defined when type is a numeric type.

Link copied to clipboard
external val min: JsAny

A number or an array of numbers storing the minimum allowable value of this property. Only defined when type is a numeric type.

Link copied to clipboard
external val name: String

The name of the property.

Link copied to clipboard
external val noData: JsAny

The no-data sentinel value that represents null values

Link copied to clipboard
external val normalized: Boolean

Whether the property is normalized.

Link copied to clipboard
external val offset: JsAny

The offset to be added to property values as part of the value transform.

Link copied to clipboard
external val required: Boolean

Whether the property is required.

Link copied to clipboard
external val scale: JsAny

The scale to be multiplied to property values as part of the value transform.

Link copied to clipboard
external val semantic: String

An identifier that describes how this property should be interpreted.

Link copied to clipboard
external val type: MetadataType

The type of the property such as SCALAR, VEC2, VEC3

Functions

Link copied to clipboard
external fun gpuBytesPerElement(): Double

Determines the byte size of a single property element, stored on the GPU. This differs from the CPU byte size if the element type is a 64-bit type that can be downcast to a 32-bit type for texture packing (only relevant for textures created from property tables).