Parses a 3D Tiles feature table from a binary buffer, providing access to per-feature properties stored as JSON scalars or typed binary arrays.
Properties
buffer: ArrayBuffer
The underlying buffer containing the feature table data.
binOffset: number
Byte offset of the binary body within the buffer.
binLength: number
Byte length of the binary body.
header: Object
Parsed JSON header object.
Methods
new FeatureTable(
buffer: ArrayBuffer,
// Byte offset of the feature table within the buffer
start: number,
// Byte length of the JSON header
headerLength: number,
// Byte length of the binary body
binLength: number
)getKeys(): Array<string>Returns all property key names defined in the feature table header, excluding extensions.
getData(
key: string,
// Number of elements to read for binary properties
count: number,
// Fallback component type (e.g. `'FLOAT'`, `'UNSIGNED_SHORT'`)
defaultComponentType: string | null = null,
// Fallback vector type (e.g. `'SCALAR'`, `'VEC3'`)
defaultType: string | null = null
): number | string | ArrayBufferView | nullReturns the value for the given property key. For binary properties, reads typed array data from the binary body using the provided count, component type, and vector type.
getBuffer( byteOffset: number, byteLength: number ): ArrayBufferReturns a slice of the binary body at the given offset and length.