Hello I am also fighting with czml streaming , my current situation is that I am able to send and read data (Server = java sse, client = EventSource as in the previous post ) .
But the matter is about how to stream ?
I am using Cesium example , the czml example .
I am able to send the whole simple.czml and it work exactly as in the original example ( reading form file , without a server) .
But I need to split data as I can send a first packet/s and after send many single packet each providing a coordinate update .
Then I am sending the first 2 packets contained in czml2.json file (2 json object,the second json object contain initialization properties and the first 8 sampled coordinates) and after a sequence ( starting form 9th sample)
----czml2.json file -----------
[
{
“id”:“document”,
“name”:“simple”,
“version”:“1.0”,
“clock”:{
“interval”:“2012-03-15T10:00:00Z/2012-03-16T10:00:00Z”,
“currentTime”:“2012-03-15T10:00:00Z”,
“multiplier”:60,
“range”:“LOOP_STOP”,
“step”:“SYSTEM_CLOCK_MULTIPLIER”
}
},
{
“id”:“Satellite/ISS”,
“name”:“ISS”,
“availability”:“2012-03-15T10:00:00Z/2012-03-16T10:00:00Z”,
“description”:"\r\n
The International Space Station (ISS) is a space station, or a habitable artificial satellite in low Earth orbit. It is a modular structure whose first component was launched in 1998. Now the largest artificial body in orbit, it can often be seen at the appropriate time with the naked eye from Earth. The ISS consists of pressurised modules, external trusses, solar arrays and other components. ISS components have been launched by American Space Shuttles as well as Russian Proton and Soyuz rockets. In 1984 the ESA was invited to participate in Space Station Freedom. In 1993, after the USSR ended, the United States and Russia merged Mir-2 and Freedom together.\r\nThe ISS serves as a microgravity and space environment research laboratory in which crew members conduct experiments in biology, human biology, physics, astronomy, meteorology and other fields. The station is suited for the testing of spacecraft systems and equipment required for missions to the Moon and Mars.
\r\n\r\n
Since the arrival of Expedition 1 on 2 November 2000, the station has been continuously occupied for 13 years and 86 days, the longest continuous human presence in space. (In 2010, the station surpassed the previous record of almost 10 years (or 3,634 days) held by Mir.) The station is serviced by a variety of visiting spacecraft: Soyuz, Progress, the Automated Transfer Vehicle, the H-II Transfer Vehicle, Dragon, and Cygnus. It has been visited by astronauts and cosmonauts from 15 different nations.
\r\n\r\n
After the U.S. Space Shuttle program ended in 2011, Soyuz rockets became the only provider of transport for astronauts at the International Space Station.\r\nThe ISS programme is a joint project among five participating space agencies: NASA, Roskosmos, JAXA, ESA, and CSA. The ownership and use of the space station is established by intergovernmental treaties and agreements. The station is divided into two sections, the Russian Orbital Segment (ROS) and the United States Orbital Segment (USOS), which is shared by many nations. The ISS maintains an orbit with an altitude of between 330 km (205 mi) and 435 km (270 mi) by means of reboost manoeuvres using the engines of the Zvezda module or visiting spacecraft. It completes 15.410 orbits per day. The ISS is funded until 2024, and may operate until 2028. The Russian Federal Space Agency, Roskosmos (RKA) has proposed using the ISS to commission modules for a new space station, called OPSEK, before the remainder of the ISS is deorbited. ISS is the ninth space station to be inhabited by crews, following the Soviet and later Russian Salyut, Almaz, and Mir stations, and Skylab from the US.
",
“billboard”:{
“eyeOffset”:{
“cartesian”:[
0,0,0
]
},
“horizontalOrigin”:“CENTER”,
“image”:“data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADJSURBVDhPnZHRDcMgEEMZjVEYpaNklIzSEfLfD4qNnXAJSFWfhO7w2Zc0Tf9QG2rXrEzSUeZLOGm47WoH95x3Hl3jEgilvDgsOQUTqsNl68ezEwn1vae6lceSEEYvvWNT/Rxc4CXQNGadho1NXoJ+9iaqc2xi2xbt23PJCDIB6TQjOC6Bho/sDy3fBQT8PrVhibU7yBFcEPaRxOoeTwbwByCOYf9VGp1BYI1BA+EeHhmfzKbBoJEQwn1yzUZtyspIQUha85MpkNIXB7GizqDEECsAAAAASUVORK5CYII=”,
“pixelOffset”:{
“cartesian2”:[
0,0
]
},
“scale”:1.5,
“show”:true,
“verticalOrigin”:“CENTER”
},
“label”:{
“fillColor”:{
“rgba”:[
255,0,255,255
]
},
“font”:“11pt Lucida Console”,
“horizontalOrigin”:“LEFT”,
“outlineColor”:{
“rgba”:[
0,0,0,255
]
},
“outlineWidth”:2,
“pixelOffset”:{
“cartesian2”:[
12,0
]
},
“show”:true,
“style”:“FILL_AND_OUTLINE”,
“text”:“ISS”,
“verticalOrigin”:“CENTER”
},
“path”:{
“show”:[
{
“interval”:“2012-03-15T10:00:00Z/2012-03-16T10:00:00Z”,
“boolean”:true
}
],
“width”:1,
“material”:{
“solidColor”:{
“color”:{
“rgba”:[
255,0,255,255
]
}
}
},
“resolution”:120,
“leadTime”:[
{
“interval”:“2012-03-15T10:00:00Z/2012-03-15T10:44:56.1031157730031Z”,
“epoch”:“2012-03-15T10:00:00Z”,
“number”:[
0,5537.546684141998,
5537.546684141998,0
]
},
{
“interval”:“2012-03-15T10:44:56.1031157730031Z/2012-03-15T12:17:13.6497999150015Z”,
“epoch”:“2012-03-15T10:44:56.1031157730031Z”,
“number”:[
0,5537.546684141998,
5537.546684141998,0
]
},
{
“interval”:“2012-03-15T12:17:13.6497999150015Z/2012-03-15T13:49:31.2088613029919Z”,
“epoch”:“2012-03-15T12:17:13.6497999150015Z”,
“number”:[
0,5537.55906138799,
5537.55906138799,0
]
},
{
“interval”:“2012-03-15T13:49:31.2088613029919Z/2012-03-15T15:21:48.776005533Z”,
“epoch”:“2012-03-15T13:49:31.2088613029919Z”,
“number”:[
0,5537.567144230008,
5537.567144230008,0
]
},
{
“interval”:“2012-03-15T15:21:48.776005533Z/2012-03-15T16:54:06.33371177400113Z”,
“epoch”:“2012-03-15T15:21:48.776005533Z”,
“number”:[
0,5537.557706241001,
5537.557706241001,0
]
},
{
“interval”:“2012-03-15T16:54:06.33371177400113Z/2012-03-15T18:26:23.8819795500021Z”,
“epoch”:“2012-03-15T16:54:06.33371177400113Z”,
“number”:[
0,5537.548267776001,
5537.548267776001,0
]
},
{
“interval”:“2012-03-15T18:26:23.8819795500021Z/2012-03-15T19:58:41.3312553199939Z”,
“epoch”:“2012-03-15T18:26:23.8819795500021Z”,
“number”:[
0,5537.449275769992,
5537.449275769992,0
]
},
{
“interval”:“2012-03-15T19:58:41.3312553199939Z/2012-03-15T21:30:58.8527762320009Z”,
“epoch”:“2012-03-15T19:58:41.3312553199939Z”,
“number”:[
0,5537.521520912007,
5537.521520912007,0
]
},
{
“interval”:“2012-03-15T21:30:58.8527762320009Z/2012-03-15T23:03:16.3758652800025Z”,
“epoch”:“2012-03-15T21:30:58.8527762320009Z”,
“number”:[
0,5537.523089048002,
5537.523089048002,0
]
},
{
“interval”:“2012-03-15T23:03:16.3758652800025Z/2012-03-16T00:35:33.8758586170152Z”,
“epoch”:“2012-03-15T23:03:16.3758652800025Z”,
“number”:[
0,5537.499993337013,
5537.499993337013,0
]
},
{
“interval”:“2012-03-16T00:35:33.8758586170152Z/2012-03-16T02:07:51.3639393709891Z”,
“epoch”:“2012-03-16T00:35:33.8758586170152Z”,
“number”:[
0,5537.488080753974,
5537.488080753974,0
]
},
{
“interval”:“2012-03-16T02:07:51.3639393709891Z/2012-03-16T03:40:08.84424079000019Z”,
“epoch”:“2012-03-16T02:07:51.3639393709891Z”,
“number”:[
0,5537.480301419011,
5537.480301419011,0
]
},
{
“interval”:“2012-03-16T03:40:08.84424079000019Z/2012-03-16T05:12:26.2685025699902Z”,
“epoch”:“2012-03-16T03:40:08.84424079000019Z”,
“number”:[
0,5537.42426177999,
5537.42426177999,0
]
},
{
“interval”:“2012-03-16T05:12:26.2685025699902Z/2012-03-16T06:44:43.7279617500026Z”,
“epoch”:“2012-03-16T05:12:26.2685025699902Z”,
“number”:[
0,5537.459459180012,
5537.459459180012,0
]
},
{
“interval”:“2012-03-16T06:44:43.7279617500026Z/2012-03-16T08:17:01.17765616998076Z”,
“epoch”:“2012-03-16T06:44:43.7279617500026Z”,
“number”:[
0,5537.449694419978,
5537.449694419978,0
]
},
{
“interval”:“2012-03-16T08:17:01.17765616998076Z/2012-03-16T08:27:42.5600708879647Z”,
“epoch”:“2012-03-16T08:17:01.17765616998076Z”,
“number”:[
0,5537.439929112035,
5537.439929112035,0
]
},
{
“interval”:“2012-03-16T08:27:42.5600708879647Z/2012-03-16T10:00:00Z”,
“epoch”:“2012-03-16T08:27:42.5600708879647Z”,
“number”:[
0,5537.439929112035,
5537.439929112035,0
]
}
],
“trailTime”:[
{
“interval”:“2012-03-15T10:00:00Z/2012-03-15T10:44:56.1031157730031Z”,
“epoch”:“2012-03-15T10:00:00Z”,
“number”:[
0,0,
5537.546684141998,5537.546684141998
]
},
{
“interval”:“2012-03-15T10:44:56.1031157730031Z/2012-03-15T12:17:13.6497999150015Z”,
“epoch”:“2012-03-15T10:44:56.1031157730031Z”,
“number”:[
0,0,
5537.546684141998,5537.546684141998
]
},
{
“interval”:“2012-03-15T12:17:13.6497999150015Z/2012-03-15T13:49:31.2088613029919Z”,
“epoch”:“2012-03-15T12:17:13.6497999150015Z”,
“number”:[
0,0,
5537.55906138799,5537.55906138799
]
},
{
“interval”:“2012-03-15T13:49:31.2088613029919Z/2012-03-15T15:21:48.776005533Z”,
“epoch”:“2012-03-15T13:49:31.2088613029919Z”,
“number”:[
0,0,
5537.567144230008,5537.567144230008
]
},
{
“interval”:“2012-03-15T15:21:48.776005533Z/2012-03-15T16:54:06.33371177400113Z”,
“epoch”:“2012-03-15T15:21:48.776005533Z”,
“number”:[
0,0,
5537.557706241001,5537.557706241001
]
},
{
“interval”:“2012-03-15T16:54:06.33371177400113Z/2012-03-15T18:26:23.8819795500021Z”,
“epoch”:“2012-03-15T16:54:06.33371177400113Z”,
“number”:[
0,0,
5537.548267776001,5537.548267776001
]
},
{
“interval”:“2012-03-15T18:26:23.8819795500021Z/2012-03-15T19:58:41.3312553199939Z”,
“epoch”:“2012-03-15T18:26:23.8819795500021Z”,
“number”:[
0,0,
5537.449275769992,5537.449275769992
]
},
{
“interval”:“2012-03-15T19:58:41.3312553199939Z/2012-03-15T21:30:58.8527762320009Z”,
“epoch”:“2012-03-15T19:58:41.3312553199939Z”,
“number”:[
0,0,
5537.521520912007,5537.521520912007
]
},
{
“interval”:“2012-03-15T21:30:58.8527762320009Z/2012-03-15T23:03:16.3758652800025Z”,
“epoch”:“2012-03-15T21:30:58.8527762320009Z”,
“number”:[
0,0,
5537.523089048002,5537.523089048002
]
},
{
“interval”:“2012-03-15T23:03:16.3758652800025Z/2012-03-16T00:35:33.8758586170152Z”,
“epoch”:“2012-03-15T23:03:16.3758652800025Z”,
“number”:[
0,0,
5537.499993337013,5537.499993337013
]
},
{
“interval”:“2012-03-16T00:35:33.8758586170152Z/2012-03-16T02:07:51.3639393709891Z”,
“epoch”:“2012-03-16T00:35:33.8758586170152Z”,
“number”:[
0,0,
5537.488080753974,5537.488080753974
]
},
{
“interval”:“2012-03-16T02:07:51.3639393709891Z/2012-03-16T03:40:08.84424079000019Z”,
“epoch”:“2012-03-16T02:07:51.3639393709891Z”,
“number”:[
0,0,
5537.480301419011,5537.480301419011
]
},
{
“interval”:“2012-03-16T03:40:08.84424079000019Z/2012-03-16T05:12:26.2685025699902Z”,
“epoch”:“2012-03-16T03:40:08.84424079000019Z”,
“number”:[
0,0,
5537.42426177999,5537.42426177999
]
},
{
“interval”:“2012-03-16T05:12:26.2685025699902Z/2012-03-16T06:44:43.7279617500026Z”,
“epoch”:“2012-03-16T05:12:26.2685025699902Z”,
“number”:[
0,0,
5537.459459180012,5537.459459180012
]
},
{
“interval”:“2012-03-16T06:44:43.7279617500026Z/2012-03-16T08:17:01.17765616998076Z”,
“epoch”:“2012-03-16T06:44:43.7279617500026Z”,
“number”:[
0,0,
5537.449694419978,5537.449694419978
]
},
{
“interval”:“2012-03-16T08:17:01.17765616998076Z/2012-03-16T08:27:42.5600708879647Z”,
“epoch”:“2012-03-16T08:17:01.17765616998076Z”,
“number”:[
0,0,
5537.439929112035,5537.439929112035
]
},
{
“interval”:“2012-03-16T08:27:42.5600708879647Z/2012-03-16T10:00:00Z”,
“epoch”:“2012-03-16T08:27:42.5600708879647Z”,
“number”:[
0,0,
5537.439929112035,5537.439929112035
]
}
]
},
“position”:{
“interpolationAlgorithm”:“LAGRANGE”,
“interpolationDegree”:5,
“referenceFrame”:“INERTIAL”,
“epoch”:“2012-03-15T10:00:00Z”,
“cartesian”:[
0,3849424.41859634,5535808.90838488,-469609.955032837,
300,2403397.25163735,5923118.10887596,-2208538.08732886,
600,681059.355577534,5629683.78882362,-3693007.85438243,
900,-1119416.00777462,4691252.20079689,-4753268.77825646,
1200,-2792163.54303408,3217045.3927905,-5269236.9636378,
1500,-4146946.26695958,1376355.11151994,-5183333.77414211,
1800,-5030073.80001301,-620907.843850796,-4506185.20959366
]
}
}
]