MetadataClassProperty

new Cesium.MetadataClassProperty(options)

A metadata property, as part of a MetadataClass.

See the 3D Metadata Specification for 3D Tiles

参数名称 类型 描述信息
options object Object with the following properties:
参数名称 类型 默认值 描述信息
id string The ID of the property.
type MetadataType The type of the property such as SCALAR, VEC2, VEC3.
componentType MetadataComponentType 可选 The component type of the property. This includes integer (e.g. INT8 or UINT16), and floating point (FLOAT32 and FLOAT64) values.
enumType MetadataEnum 可选 The enum type of the property. Only defined when type is ENUM.
isArray boolean false 可选 True if a property is an array (either fixed length or variable length), false otherwise.
isVariableLengthArray boolean false 可选 True if a property is a variable length array, false otherwise.
arrayLength number 可选 The number of array elements. Only defined for fixed length arrays.
normalized boolean false 可选 Whether the property is normalized.
min number | Array.<number> | Array.<Array.<number>> 可选 A number or an array of numbers storing the minimum allowable value of this property. Only defined when type is a numeric type.
max number | Array.<number> | Array.<Array.<number>> 可选 A number or an array of numbers storing the maximum allowable value of this property. Only defined when type is a numeric type.
offset number | Array.<number> | Array.<Array.<number>> 可选 The offset to be added to property values as part of the value transform.
scale number | Array.<number> | Array.<Array.<number>> 可选 The scale to be multiplied to property values as part of the value transform.
noData boolean | number | string | Array 可选 The no-data sentinel value that represents null values.
default boolean | number | string | Array 可选 A default value to use when an entity's property value is not defined.
required boolean false 可选 Whether the property is required.
name string 可选 The name of the property.
description string 可选 The description of the property.
semantic string 可选 An identifier that describes how this property should be interpreted.
extras * 可选 Extra user-defined properties.
extensions object 可选 An object containing extensions.
Experimental

This feature is using part of the 3D Tiles spec that is not final and is subject to change without Cesium's standard deprecation policy.

成员(属性)

readonly arrayLength : number

The number of array elements. Only defined for fixed-size arrays.
The component type of the property. This includes integer (e.g. INT8 or UINT16), and floating point (FLOAT32 and FLOAT64) values

readonly default : boolean|number|string|Array

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

readonly description : string

The description of the property.
The enum type of the property. Only defined when type is ENUM.
An object containing extensions.
Extra user-defined properties.
The ID of the property.
True if a property is an array (either fixed length or variable length), false otherwise.

readonly isVariableLengthArray : boolean

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

readonly max : number|Array.<number>|Array.<Array.<number>>

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

readonly min : number|Array.<number>|Array.<Array.<number>>

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

readonly noData : boolean|number|string|Array

The no-data sentinel value that represents null values

readonly normalized : boolean

Whether the property is normalized.

readonly offset : number|Array.<number>|Array.<Array.<number>>

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

readonly scale : number|Array.<number>|Array.<Array.<number>>

The scale to be multiplied to property values as part of the value transform.
An identifier that describes how this property should be interpreted.
The type of the property such as SCALAR, VEC2, VEC3