Profile

new Cesium.Profile(scene)

Section line analysis class, select the starting point and end point in the scene for analysis, and obtain the section line analysis effect diagram.
Name Type Description
scene Object optional Specify the scene object for analysis.
Throws:
Example:
//Create a section line analysis
var profile= new Cesium.Profile(scene);
Demo:

Members

endPoint : Array

Gets or sets the end point of the profile analysis. The point is represented by an array of longitude, latitude, and elevation.

extendHeight : Number

Gets or sets the span height of the profile analysis in 3D space, the unit is meter.

startPoint : Array

Get or set the starting point of the profile analysis. The point is represented by an array of longitude, latitude, and elevation.

Methods

build()

Perform hatch analysis.

destroy()

Clear the analysis results.

getBuffer(func)

Obtain the results of the profile analysis.
Name Type Description
func function Callback function, its parameter is the result of profile analysis (profile rgba byte stream).

getPositions(func)

Get the actual geographic coordinates of the point set of the analysis result.
Name Type Description
func function Callback function, its parameter is the result of profile analysis.