SpaceCatalogDataSource

new Cesium.SpaceCatalogDataSource(options)

Name Type Description
options Object Object with the following properties:
Name Type Default Description
name string Name of the datasource
entityDefault Object {} optional A Entity options input object, applied to every entity created by this DataSource.object
Example:
(async function(){
  const SpaceCatalog = new SpaceCatalogDataSource({
   name:"New Catalog",
   entityDefault: {
    path: {
       material: Color.WHITE,
       width: 1,
       leadTime: 20,
       trailTime: 20,
       resolution: 40,
       show: false,
     },
     point: {
       position: new Cartesian3(0, 0, 0),
       color: Color.WHITE,
       outlineColor: Color.BLACK.withAlpha(0.3),
       outlineWidth: 1,
       pixelSize: 5,
       scaleByDistance: new NearFarScalar(1, 1.4, 5e7, 0.4),
       translucencyByDistance: new NearFarScalar(1, 1, 5e7, 0.78),
     },
   }
  });

  await viewer.dataSources.add(sDC);
  const omm = await fetch("./catalog.fbs");
  await sDC.loadOMM(omm, "flatbuffer");
})()

Extends

Members

Properties:
Name Type Description
_viewer Viewer The internal reference to the Cesium Viewer instance.
Gets an event that will be raised when the underlying data changes.
Inherited From:
Gets the preferred clock settings for this data source.
Inherited From:
Gets or sets the clustering options for this data source. This object can be shared between multiple data sources.
Inherited From:
Gets the collection of Entity instances.
Inherited From:
Gets an event that will be raised if an error is encountered during processing.
Inherited From:
Gets a value indicating if the data source is currently loading data.
Inherited From:
The date and time when data was last loaded into the data source.

loadingEvent : Event.<function(this, boolean)>

Gets an event that will be raised when the value of isLoading changes.
Inherited From:
Gets a human-readable name for this instance.
Inherited From:
Gets whether or not this data source should be displayed.
Inherited From:

Methods

static Cesium.SpaceCatalogDataSource.categorizeSatellites()

Categorizes the satellites, represented as SpaceEntity objects, based on their orbit types. This method goes through all entities in this datasource and classifies them into their respective orbital categories (LEO, MEO, HEO, GEO, IGO, EGO, GEOIADC, GEOSYNC, SUNSYNC, SEMISYNC, POLAR, UNKNOWN). Each of these categories are arrays of SpaceEntity objects that belong to that specific orbit type. This is a computationally expensive operation, which is why it is not called automatically on entity add/modify/remove.
Example:
// Assuming instance of SpaceEntity class is spaceEntity
spaceEntity.categorizeSatellites();
Name Type Description
omm ArrayBuffer | Array.<any> An Orbital Mean Elements Message (OMM)
satcat ArrayBuffer | Array.<any> An Satellite Catalog Message (SATCAT)
Returns:
Updates the data source to the provided time. This function is optional and is not required to be implemented. It is provided for data sources which retrieve data based on the current animation time or scene state. If implemented, update will be called by DataSourceDisplay once a frame.
Name Type Description
time JulianDate The simulation time.
Returns:
True if this data source is ready to be displayed at the provided time, false otherwise.
Inherited From:
Need help? [email protected]