queryElevationBuffer

The queryElevationBuffer object enables calculation of elevation values for a designated area of the terrain. The following method is available:

§  create()

create 

create(polygon, options) → {promise}

Returns an array containing the elevation values for a designated area of the terrain. The query includes all ground objects, modify terrain objects, 3DML, etc. that are currently loaded on the terrain.

Parameters

Name

Type

Description

polygon

Array of Cesium.Cartesian3

Array which represents the polygon that designates the area for calculation of elevation values.

options

Object

Name

Type

Default

Description

quality

Number

1024

Resolution in pixels.

Returns

Promise - A promise, which resolves to an array of elevation values in meters. The length of the array corresponds to the quality (resolution) of the buffer.