heightScale |
Number
|
1.0
|
optional
The factor by which to multiply height samples in order to obtain
the height above the heightOffset, in meters. The heightOffset is added to the resulting
height after multiplying by the scale. |
heightOffset |
Number
|
0.0
|
optional
The offset to add to the scaled height to obtain the final
height in meters. The offset is added after the height sample is multiplied by the
heightScale. |
elementsPerHeight |
Number
|
1
|
optional
The number of elements in the buffer that make up a single height
sample. This is usually 1, indicating that each element is a separate height sample. If
it is greater than 1, that number of elements together form the height sample, which is
computed according to the structure.elementMultiplier and structure.isBigEndian properties. |
stride |
Number
|
1
|
optional
The number of elements to skip to get from the first element of
one height to the first element of the next height. |
elementMultiplier |
Number
|
256.0
|
optional
The multiplier used to compute the height value when the
stride property is greater than 1. For example, if the stride is 4 and the strideMultiplier
is 256, the height is computed as follows:
`height = buffer[index] + buffer[index + 1] * 256 + buffer[index + 2] * 256 * 256 + buffer[index + 3] * 256 * 256 * 256`
This is assuming that the isBigEndian property is false. If it is true, the order of the
elements is reversed. |
isBigEndian |
Boolean
|
false
|
optional
Indicates endianness of the elements in the buffer when the
stride property is greater than 1. If this property is false, the first element is the
low-order element. If it is true, the first element is the high-order element. |
lowestEncodedHeight |
Number
|
|
optional
The lowest value that can be stored in the height buffer. Any heights that are lower
than this value after encoding with the `heightScale` and `heightOffset` are clamped to this value. For example, if the height
buffer is a `Uint16Array`, this value should be 0 because a `Uint16Array` cannot store negative numbers. If this parameter is
not specified, no minimum value is enforced. |
highestEncodedHeight |
Number
|
|
optional
The highest value that can be stored in the height buffer. Any heights that are higher
than this value after encoding with the `heightScale` and `heightOffset` are clamped to this value. For example, if the height
buffer is a `Uint16Array`, this value should be `256 * 256 - 1` or 65535 because a `Uint16Array` cannot store numbers larger
than 65535. If this parameter is not specified, no maximum value is enforced. |