Questions tagged [czml]

Cesium Language (CZML) is a JSON format for describing a time-dynamic graphical scene, primarily for display in a web browser running Cesium. It describes lines, points, billboards, models, and other graphical primitives, and specifies how they change with time.

Cesium Language (CZML)

CZML is a JSON format for describing a time-dynamic graphical scene, primarily for display in a web browser running Cesium. It describes lines, points, billboards, models, and other graphical primitives, and specifies how they change with time. In many ways, the relationship between Cesium and CZML is similar to the relationship between Google Earth and KML. Both CZML and KML are data formats for describing scenes in their respective clients and are meant to be generated by a wide variety of applications.

  1. CZML is based on JSON.
  2. CZML can accurately describe properties that change over time.
  3. CZML is structured for efficient, incremental streaming to a client.
  4. CZML is optimized for client consumption.
  5. CZML is extensible.
  6. CZML is an open format.

CZML is a subset of JSON, meaning that a valid CZML document is also a valid JSON document. Specifically, a CZML document contains a single JSON array where each object-literal element in the array is a CZML Packet. A CZML packet describes the graphical properties for a single object in the scene, such as a single aircraft.

Examples

Note: javascript comments in this example are for illustration purposes even though comments are not technically allowed in JSON.

[
    // packet one
    {
        "id": "GroundControlStation"
        "position": { "cartographicDegrees": [-75.5, 40.0, 0.0] },
        "point": {
            "color": { "rgba": [0, 0, 255, 255] },
        }
    },
    // packet two
    {
        "id": "PredatorUAV",
        // ...
    }
]

There are additional examples online.

Demos

Cesium ships with several CZML demos.

References

51 questions
0
votes
1 answer

same position shows differently for same x,y,z or lat,long,height when time-dynamic

So, I am using the same position in a CZML file, sometimes as part of a time-dynamic position property, and other times a stationary, constant property. When I use the stationary constant property, the entity renders in the expected location (near…
Clinton J
  • 1,975
  • 3
  • 19
  • 31
0
votes
0 answers

Updating a CZML property after the property is declared

I'm trying to update some properties (namely "semiMinorAxis" and "semiMajorAxis") from a packet previously declared in a czml file. The way I attempt to do this, is by overwriting the values of "semiMinorAxis" and "semiMajorAxis". That is: between…
Lucien S.
  • 5,123
  • 10
  • 52
  • 88
0
votes
1 answer

Creating a pyramid with polygon base in CZML

I am new in Cesium, CZML and javascript, I am trying to create a pyramid with polygon base on the ground. I have the latitude and longitude the height of its top point, I have the angle of each side. I couldn't find any good method to create it yet.…
azar
  • 283
  • 3
  • 21
0
votes
1 answer

cesium javascript czml library

I'm trying to adapt a CZML example for my purpose. I start running it on my local machine after changing all the requirements but it is not running. Only part of it is running, for example when I'm using czml for a label then it is running. Here is…
-1
votes
1 answer

Load czml/json data from file and store it into variable

I am using the Sandcastle interface offered by Cesium but my question can be extended (I guess) to any javascript user. My goal consists in loading a czml file (could also be a .json file) and store its content into a variable in order to access its…
Federico Gentile
  • 5,650
  • 10
  • 47
  • 102
-1
votes
1 answer

Query czml/json data in smart way

I am using Cesium and I have a czml file (very similar to JSON format) and I would like to identify one of its elements by specifying the tag of interest: var czml = [{ "id" : "document", "name" : "Basic CZML billboard and label", …
Federico Gentile
  • 5,650
  • 10
  • 47
  • 102
1 2 3
4