Support

Connecting STK and Cesium: A Guide

Created by Alexander Ridgeway, Modified on Wed, 28 Aug, 2024 at 2:14 PM by Alexander Ridgeway

STK (Systems Tool Kit) and Cesium are powerful tools. This guide explains how to export data from STK to Cesium, focusing on exporting CZML files and exporting coverage data as Georeferenced Imagery.


 

Exporting CZML from STK to Cesium using CZML Exporter Plugin

  1. Utilize the CZML Exporter plugin in STK to generate CZML files. 
    1. Create your STK scenario with all objects and sensors.
    2. In the Tool Bar, Right Click and find the CZML Exporter.
    3. In this One-button toolbar, Open the CZML Exporter. CZML Export Toolbar
    4. In the CZML Exporter plugin to export the scenario to a CZML file.
    5. Note:This plugin captures the following objects. 
      1. 3D Models, including vehicle attitude and STK model articulations
      2. Access lines
      3. Chains
      4. Covariance ellipsoids (excluding curvilinear ellipsoids)
      5. Text label for each object
      6. Routes / Trajectories / Orbits (in the default reference frame)
      7. Routes over terrain for ground vehicles
    6. Note: Default 3D Models are available from AGI can be used. 
    7. https://help.agi.com/stk/12.8.2/index.htm#czmlExport.htm 

 

A screenshot of a computer

Description automatically generated

 

  1. Upload to Cesium Ion:
    1. Go to https://ion.cesium.com/ 
    2. Login or Create an Account (Free for starting users)
    3. Click My Assets, then click [Add Data] then in the Add Data page. Select [Add files…] 

A screenshot of a computer

Description automatically generated

A screenshot of a computer

Description automatically generated

  1. Create CZML Stories:
    1. Use the Asset: In Cesium Stories, add the uploaded CZML asset.
    2. Setup the Story:
    3. Configure the time scale and view.
    4. Add text for different vignettes of your scenario.
    5. Share Your Story: Utilize the share feature to share your stories with external users.
  2. Note:
    1. CZML includes the position and velocity of all physical objects in your scenario.
    2. It includes sensor projections for all objects.
    3. Non-physical analysis objects are not included.
    4. Save reports and graphs as images separately for any additional analysis information.

 


Other Export Capabilities: Coverage to JP2

  1. Export Coverage Definitions as JP2:
    1. Georeferenced Imagery Files: These files can be loaded into Cesium Ion natively.
    2. Connect Command: Use a connect command to export Coverage Definitions as JP2.

 

  1. Types of Contours:
    1. Block Contours: Use this if your STK scenario uses block contours.
    2. Smooth Contours: Interpolates rough blocks into smooth contours.

 

  1. Steps:
    1. Use the relevant connect command for your desired export:
    2. [Export Block Contours](https://help.agi.com/stk/../Subsystems/connectCmds/Content/cmd_GraphicsExportBlockContours.htm)
    3. [Export Smooth Contours](https://help.agi.com/stk/Subsystems/connectCmds/connectCmds.htmcmd_GraphicsExportSmoothContours.htm)

 

Automating CZML Export

  1. Connect Command for Automation:
    1. Use the `ExportCZML` connect command to automate CZML exports from STK.
    2. Example Command:
      1. ExportCZML   "C:/MyTemp/MyScenarioForCzml/MyScenarioForCzml.czml" http://assets.agi.com/models/
  2. Reference:
    1. [ExportCZML Command](https://help.agi.com/stk/Subsystems/connectCmds/connectCmds.htmcmd_ExportCZML.htm)

 

By following these steps, you can efficiently export and visualize your STK scenarios in Cesium, enhancing your storytelling and data presentation capabilities.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article