Stopping CZML data interpolation

Hugo,

If you simply want to set a single interval of availability for the object (i.e. the object “exists” for that interval and does not exist anywhere else) then you can use the “availability” property, which is an ISO8601 time interval.

An example would be:

{

“id”:“myObject”,

“availability”:“2010-11-12T17:00:00Z/2010-11-13T05:00:00Z”,

}

If you want the object to move, stop and stay in the same position for a while, then start moving again, you want to composite several position intervals together. You simple specify these intervals in the CZML file itself.

Something like the below:

“position”:{

“interval”:“2010-11-13T04:00:00Z/2010-11-13T05:00:00Z”,

“epoch”:“2010-11-13T04:00:00Z”,

“cartesian”:[t, x, y, z, t, x, y, z, t, x, y, z…]

},

“position”:{

“interval”:“2010-11-13T05:00:00Z/2010-11-13T06:00:00Z”,

“cartesian”:[x,y,z]

},

“position”:{

“interval”:“2010-11-13T06:00:00Z/2010-11-13T07:00:00Z”,

“epoch”:“2012-08-04T16:00:00Z”,

“cartesian”:[t, x, y, z, t, x, y, z, t, x, y, z…]

}

So the first interval is sampled, and then the second interval has a single position for the next hour, the third interval starts it moving again. I wrote the above off the top of my head, so you may need to check it against the full CZML syntaxt to make sure I got it correct.