extendsFeatureTable
Extends FeatureTable to provide indexed access to per-feature batch properties, as found in B3DM and PNTS tiles.
Properties
count: number
Total number of features in the batch.
extensions: Object
Parsed extension objects keyed by extension name.
Methods
new BatchTable(
buffer: ArrayBuffer,
// Number of features in the batch
count: number,
// Byte offset of the batch table within the buffer
start: number,
// Byte length of the JSON header
headerLength: number,
// Byte length of the binary body
binLength: number
)getDataFromId(
// Feature index (0 to count - 1)
id: number,
// Optional object to write properties into
target: Object = {}
): ObjectReturns an object with all properties of the batch table and its extensions for the
given feature id. A target object can be specified to store the result. Throws if
id is out of bounds.
getPropertyArray( key: string ): Array | TypedArray | nullReturns the array of values for the given property key across all features. Returns
null if the key is not in the table.