AccessReportGenerator

new Cesium.AccessReportGenerator()

Creates an instance of AccessReportGenerator.

Members

Gets the event emitter for progress events.

Methods

async generate(params)Promise.<Array.<AccessReportRow>>

Generates an access report for the provided entities within the given time frame.
Name Type Description
params Object The parameters for the function.
Name Type Default Description
fromEntity Array.<Object> The entities from which the access report will be generated.
toEntity Array.<Object> Array of entities for which the access report will be generated.
startTime JulianDate The start time for the report.
endTime JulianDate The end time for the report.
step number 60 optional The step interval (in seconds) for the report.
sensor Object null optional The sensor to be used for the report.
sensorOrientation Object The orientation of the sensor.
highResolution boolean true optional Flag to indicate if high-resolution timing should be used.
timeout number 0 optional Optional timeout for each worker in milliseconds. If 0, no timeout is applied.
numWorkers number optional Optional number of workers to use. If not specified, defaults to the maximum available.
Returns:
Returns a Promise that resolves with an array of AccessReportRow objects or rejects with an error.
Throws:
  • Error : Throws an error if any of the Promise tasks fail or exceed the timeout.

mergeIntervals(report)Array.<Object>

Merges overlapping time intervals in the report.
Name Type Description
report Array.<Object> The array of AccessReportRow objects to merge.
Returns:
- The merged report.
Need help? [email protected]