Profile

new SuperMap3D.Profile(scene)

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

Members

endPoint : Array

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

extendHeight : Number

Get or set the spanning height of section analysis in 3D space, the unit is meter.

startPoint : Array

Gets or sets the starting point for section line analysis. The point is represented by an array of longitude, latitude, and elevation.

Methods

build()

Perform a profile analysis.

destroy()

Clear analysis results.

getBuffer(func)

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

getPositions(func)

Get the actual geographic coordinates of the point set for the analysis results.
Name Type Description
func function Callback function whose argument is the result of profile analysis.