原文链接及内容

卫星轨迹界面如下:

车辆轨迹如下:

示例所用simple.czml数据如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679

[
{
"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, //60秒倍速
"range":"LOOP_STOP", //循环播放
"step":"SYSTEM_CLOCK_MULTIPLIER"
}
},
{
"id":"9927edc4-e87a-4e1f-9b8b-0bfb3b05b227",
"name":"Accesses",
"description":"List of Accesses"//访问列表
},
{
"id":"Satellite/Geoeye1-to-Satellite/ISS",
"name":"Geoeye1 to ISS",
"parent":"9927edc4-e87a-4e1f-9b8b-0bfb3b05b227",
//availability:可用的时间间隔集合,可以是单个,也可以是数组(多个)
"availability":[
"2012-03-15T10:16:06.97400000000198Z/2012-03-15T10:33:59.3549999999959Z","2012-03-15T11:04:09.73799999999756Z/2012-03-15T11:21:04.51900000000023Z","2012-03-15T11:52:06.94400000000314Z/2012-03-15T12:08:18.8840000000055Z","2012-03-15T12:40:57.2069999999949Z/2012-03-15T12:54:39.301999999996Z","2012-03-15T13:29:44.5040000000008Z/2012-03-15T13:41:05.96899999999732Z","2012-03-15T14:20:16.8450000000012Z/2012-03-15T14:25:48.0559999999969Z","2012-03-16T07:01:44.4309999999823Z/2012-03-16T07:06:19.6309999999939Z","2012-03-16T07:46:00.457999999984168Z/2012-03-16T07:57:20.8470000000088Z","2012-03-16T08:32:14.5289999999804Z/2012-03-16T08:46:17.0109999999986Z","2012-03-16T09:18:28.4590000000026Z/2012-03-16T09:35:16.6410000000033Z"
],
"description":"<h2>Access times</h2><table class='sky-infoBox-access-table'><tr><th>Start</th><th>End</th><th>Duration</th></tr><tr><td> 2012-03-15 10:16:06.974Z </td><td>2012-03-15 10:33:59.355Z </td><td> 1072.381s </td></tr><tr><td> 2012-03-15 11:04:09.738Z </td><td>2012-03-15 11:21:04.519Z </td><td> 1014.781s </td></tr><tr><td> 2012-03-15 11:52:06.944Z </td><td>2012-03-15 12:08:18.884Z </td><td> 971.940s </td></tr><tr><td> 2012-03-15 12:40:57.207Z </td><td>2012-03-15 12:54:39.302Z </td><td> 822.095s </td></tr><tr><td> 2012-03-15 13:29:44.504Z </td><td>2012-03-15 13:41:05.969Z </td><td> 681.465s </td></tr><tr><td> 2012-03-15 14:20:16.845Z </td><td>2012-03-15 14:25:48.056Z </td><td> 331.211s </td></tr><tr><td> 2012-03-16 07:01:44.431Z </td><td>2012-03-16 07:06:19.631Z </td><td> 275.200s </td></tr><tr><td> 2012-03-16 07:46:00.458Z </td><td>2012-03-16 07:57:20.847Z </td><td> 680.389s </td></tr><tr><td> 2012-03-16 08:32:14.529Z </td><td>2012-03-16 08:46:17.011Z </td><td> 842.482s </td></tr><tr><td> 2012-03-16 09:18:28.459Z </td><td>2012-03-16 09:35:16.641Z </td><td> 1008.182s </td></tr></table>",
"polyline":{
"show":[
{
"interval":"0000-01-01T00:00:00Z/2012-03-15T10:16:06.97400000000198Z",
"boolean":false
},
{
"interval":"2012-03-15T10:16:06.97400000000198Z/2012-03-15T10:33:59.3549999999959Z",
"boolean":true
}
//剩下的数据略...
],
"width":1,
//绿色卫星轨迹线
"material":{
"solidColor":{
"color":{
"rgba":[
0,255,0,255
]
}
}
},
"arcType":"NONE",
"positions":{
"references":[
"Satellite/Geoeye1#position","Satellite/ISS#position"
]
}
}
},
{
"id":"Facility/AGI-to-Satellite/ISS",
"name":"AGI to ISS",
"parent":"9927edc4-e87a-4e1f-9b8b-0bfb3b05b227",
"availability":[
"2012-03-15T10:52:19.3940000000002Z/2012-03-15T11:02:24.5570000000007Z","2012-03-15T12:28:24.0339999999997Z/2012-03-15T12:38:34.6399999999994Z","2012-03-15T14:06:02.09799999999814Z/2012-03-15T14:14:48.5310000000027Z","2012-03-15T15:43:15.2350000000006Z/2012-03-15T15:52:06.56500000000233Z","2012-03-15T17:19:26.3190000000031Z/2012-03-15T17:29:36.0240000000049Z","2012-03-15T18:55:44.7079999999987Z/2012-03-15T19:05:17.7339999999967Z","2012-03-16T09:56:05.90600000001723Z/2012-03-16T10:00:00Z"
],
"description":"<h2>Access times</h2><table class='sky-infoBox-access-table'><tr><th>Start</th><th>End</th><th>Duration</th></tr><tr><td> 2012-03-15 10:52:19.394Z </td><td>2012-03-15 11:02:24.557Z </td><td> 605.163s </td></tr><tr><td> 2012-03-15 12:28:24.034Z </td><td>2012-03-15 12:38:34.640Z </td><td> 610.606s </td></tr><tr><td> 2012-03-15 14:06:02.098Z </td><td>2012-03-15 14:14:48.531Z </td><td> 526.433s </td></tr><tr><td> 2012-03-15 15:43:15.235Z </td><td>2012-03-15 15:52:06.565Z </td><td> 531.330s </td></tr><tr><td> 2012-03-15 17:19:26.319Z </td><td>2012-03-15 17:29:36.024Z </td><td> 609.705s </td></tr><tr><td> 2012-03-15 18:55:44.708Z </td><td>2012-03-15 19:05:17.734Z </td><td> 573.026s </td></tr><tr><td> 2012-03-16 09:56:05.906Z </td><td>2012-03-16 10:00:00.000Z </td><td> 234.094s </td></tr></table>",
"polyline":{
"show":[
{
"interval":"0000-01-01T00:00:00Z/2012-03-15T10:52:19.3940000000002Z",
"boolean":false
},
{
"interval":"2012-03-15T10:52:19.3940000000002Z/2012-03-15T11:02:24.5570000000007Z",
"boolean":true
}
//其余数据省略...
],
"width":1,
//aqua,水绿色
"material":{
"solidColor":{
"color":{
"rgba":[
0,255,255,255
]
}
}
},
"arcType":"NONE",
"positions":{
"references":[
"Facility/AGI#position","Satellite/ISS#position"
]
}
}
},
{
"id":"Facility/AGI-to-Satellite/Geoeye1/Sensor/Sensor",
"name":"AGI to Sensor",
"parent":"9927edc4-e87a-4e1f-9b8b-0bfb3b05b227",
"description":"<h2>No accesses</h2>",
"polyline":{
"show":false,
"width":1,
//aqua,水绿色
"material":{
"solidColor":{
"color":{
"rgba":[
0,255,255,255
]
}
}
},
"arcType":"NONE",
"positions":{
"references":[
"Facility/AGI#position","Satellite/Geoeye1/Sensor/Sensor#position"
]
}
}
},
//宾夕法尼亚州
//红色字体,黑色轮廓的文字注记
//红色的点
//红色多边形,不填充
{
"id":"AreaTarget/Pennsylvania",
"name":"Pennsylvania",
"availability":"2012-03-15T10:00:00Z/2012-03-16T10:00:00Z",
"description":"<!--HTML-->\r\n<p>Pennsylvania, officially the Commonwealth of Pennsylvania, is a U.S. state that is located in the Northeastern and Mid-Atlantic regions of the United States, and the Great Lakes region. The state borders Delaware to the southeast, Maryland to the south, West Virginia to the southwest, Ohio to the west, Lake Erie and Ontario, Canada to the northwest, New York to the north and New Jersey to the east. The Appalachian Mountains run through the middle of the state.\r\nPennsylvania is the 33rd most extensive, the 6th most populous, and the 9th most densely populated of the 50 United States. The state's four most populous cities are Philadelphia, Pittsburgh, Allentown, and Erie. The state capital is Harrisburg. Pennsylvania has 51 miles (82 km) of coastline along Lake Erie and 57 miles (92 km) of shoreline along the Delaware Estuary. The state is one of the 13 original founding states of the U.S.</p>",
"label":{
"fillColor":{
"rgba":[
255,0,0,255
]
},
"font":"11pt Lucida Console",
"horizontalOrigin":"LEFT",
"outlineColor":{
"rgba":[
0,0,0,255
]
},
"outlineWidth":2,
"show":true,
"style":"FILL_AND_OUTLINE",
"text":"Pennsylvania",
"verticalOrigin":"CENTER"
},
"point":{
"color":{
"rgba":[
255,0,0,255
]
},
"outlineWidth":0,
"pixelSize":5,
"show":true
},
"polygon":{
"positions":{
"cartographicRadians":[
-1.3522077240237877,0.6932383436059149,0,-1.3630314740519183,0.6933402355423893,0,-1.3671958658568963,0.6933164116349497,0,-1.3680725973741055,0.6933103378544294,0,-1.3756294390644388,0.693299289626768,0,-1.37759145155452,0.693285710886166,0,-1.3857323154905137,0.6932329317993553,0,-1.387204693159873,0.6932497043584019,0,-1.3921642397583167,0.6932764600632868,0,-1.3948369679907713,0.6932740164944832,0,-1.403752356914346,0.6932421638673993,0,-1.4054136839844849,0.6932660224548367,0,-1.4054203339781848,0.6974061187809533,0,-1.40542577948586,0.6985302157572724,0,-1.4054446815793686,0.7009683713811051,0,-1.4054013802466303,0.7051660984836011,0,-1.4054152208071435,0.7064882030988564,0,-1.405374066131245,0.7092531367782914,0,-1.405344517975858,0.7130398911135833,0,-1.4053553041696831,0.7137921630703696,0,-1.4053903506948033,0.717847558527404,0,-1.4053391082894005,0.7241248283511975,0,-1.4054076823049872,0.724226301809922,0,-1.4053853251132624,0.7304339504245932,0,-1.4053495111334156,0.732809309071272,0,-1.3921311340866651,0.7377041737073639,0,-1.3921036273290417,0.7330926289989202,0,-1.3894979895551738,0.7330486468055195,0,-1.3798484450375388,0.7330586305001696,0,-1.3773883852209647,0.7330357493325297,0,-1.3666816595180005,0.7330283146713379,0,-1.3649219132838528,0.7330070217223114,0,-1.3569064163205986,0.7329918900387238,0,-1.354599770992057,0.7330180002614316,0,-1.3433550648083268,0.7330904667885002,0,-1.342653826195758,0.7330826651925256,0,-1.3362924480939438,0.7330909906599572,0,-1.328981348766283,0.7330498535192947,0,-1.3282799705255588,0.7330296775356948,0,-1.317369878937513,0.7329750316713255,0,-1.3156783227347815,0.7330097463386135,0,-1.3150298279817356,0.7329135612488367,0,-1.314652993784966,0.7323625607125478,0,-1.3139482994025766,0.7321239392772451,0,-1.313439099339346,0.7307498413128194,0,-1.3119864438784967,0.730731794657347,0,-1.3115849481938966,0.7305214824566543,0,-1.3111742895338896,0.7304061685456499,0,-1.3110525702187852,0.7301933081536464,0,-1.3103904967805342,0.7297947098063845,0,-1.3106869061243591,0.7294990335104291,0,-1.3106926482391603,0.7291819769374323,0,-1.31006717438301,0.7290287195687776,0,-1.3099912873941209,0.7282685936295457,0,-1.3101384361377446,0.7280613880956304,0,-1.3098927634269164,0.7267083737010938,0,-1.3102614817770415,0.7262854105154587,0,-1.3102163475385047,0.7261352772658493,0,-1.3094348237109952,0.7254602361685523,0,-1.3092568000409661,0.7250021744241752,0,-1.308504580282513,0.7240255927322389,0,-1.3078199921164888,0.72403864782177,0,-1.3072264926882589,0.7236467166299556,0,-1.307169245851595,0.7233461185166344,0,-1.3066244760589671,0.7233894550695429,0,-1.3053806318405998,0.7230886126517037,0,-1.304717877749918,0.7230926094796837,0,-1.3044598132746381,0.7229514646847072,0,-1.304466742212013,0.7225949985688139,0,-1.3038530144070728,0.7221311597980974,0,-1.3037620652441313,0.7217037983975161,0,-1.3053608047669052,0.7210299440396993,0,-1.3054040889283545,0.7207376013315654,0,-1.3059460661823945,0.7205192954872712,0,-1.3066654038056376,0.7195438482063814,0,-1.3066038809082192,0.7191939794384397,0,-1.307509392852277,0.7180478912764205,0,-1.3081242027013054,0.7175373648956472,0,-1.308728104256843,0.717319652461049,0,-1.3088029439804343,0.7170121428373868,0,-1.3084086390699141,0.7170281126169686,0,-1.3090170610213867,0.7166757130974598,0,-1.3096123057176687,0.7160773791853247,0,-1.3102183365700435,0.7157721733780154,0,-1.3110323583836496,0.7155894722475611,0,-1.3114282515208273,0.715192915896617,0,-1.3113623303982265,0.7149382548578634,0,-1.3103886282856712,0.7138982478932651,0,-1.3102830183588716,0.7135714872902171,0,-1.3099828739776964,0.7133519073843598,0,-1.3099502537461944,0.7130661620241878,0,-1.3107343082404708,0.71278013738274,0,-1.3105539981986583,0.7124678106579555,0,-1.3107517440349952,0.7119489067090039,0,-1.31127146832641,0.711618131825877,0,-1.311969495533574,0.7116548186295764,0,-1.3123766984036227,0.7111869655638845,0,-1.312273898452243,0.7107655382832366,0,-1.3125810939125313,0.7101058734983065,0,-1.3122094259121033,0.7098219258392405,0,-1.3126432625232558,0.7094893707227551,0,-1.312451642745932,0.7092008153872138,0,-1.3124943858525955,0.7088611393395713,0,-1.3123744118489564,0.7083205235010411,0,-1.3124452547722973,0.708092164574061,0,-1.3121783938297178,0.7078498255687451,0,-1.311170361152473,0.7079894345182887,0,-1.3103895005747963,0.707650107564989,0,-1.3101083802768658,0.7072250674577409,0,-1.3102207619963784,0.7060949839922579,0,-1.309999715938635,0.7054652167207774,0,-1.3093681334206897,0.7051362570197143,0,-1.3090052619072645,0.705263631186341,0,-1.3085229574630952,0.7051907985987479,0,-1.3081275878407266,0.704161490481042,0,-1.3078189262517947,0.7039573043817338,0,-1.3076207789382897,0.7036127588721909,0,-1.3069140774300372,0.7033606983954779,0,-1.3062526671932404,0.7024681543136311,0,-1.3044385887704104,0.701233735108179,0,-1.3042056919320535,0.7007377298965646,0,-1.304568964853792,0.7003023050552322,0,-1.3060128412908008,0.7001592403389345,0,-1.3067616226475691,0.699494182468726,0,-1.3082325342309757,0.6991443834599382,0,-1.3087087299920748,0.6987265340836812,0,-1.3097941505737305,0.698265086353168,0,-1.310184580829599,0.6978768726763835,0,-1.3104732932768435,0.6977082912802286,0,-1.3109336414681285,0.6977250115221181,0,-1.3114380592151826,0.6973624890931379,0,-1.3115653635501037,0.6969928457322186,0,-1.3113672162189656,0.6963321861243438,0,-1.311491064806832,0.6960654124902647,0,-1.3122363904438565,0.6959921609813949,0,-1.313307848385792,0.6955209219518895,0,-1.3134255708764333,0.69543595930277,0,-1.3150346253356304,0.6954879526165308,0,-1.316335524310828,0.6946234384593984,0,-1.3171997767525299,0.6951045210815227,0,-1.319179975605344,0.6953413971468251,0,-1.3202367902547627,0.695309754284478,0,-1.3211230163524166,0.694998230372876,0,-1.3220100103668133,0.6942036166803666,0,-1.322522002814063,0.6933243719682792,0,-1.3228041702830704,0.6933123989973828,0,-1.3288801694793237,0.6932838277389112,0,-1.330519016712254,0.693277265241703,0,-1.3363957516005893,0.6932495491982945,0,-1.3402469439857425,0.6932668452760358,0,-1.3438479258876066,0.6932604746923505,0,-1.347761635982283,0.6932567744504896,0,-1.3520094545588786,0.6932461975964622,0,-1.3522077240237877,0.6932383436059149,0
]
},
"material":{
"solidColor":{
"color":{
"rgba":[
255,0,0,77
]
}
}
},
"fill":false,
"outline":true,
"outlineColor":{
"rgba":[
255,0,0,255
]
}
},
"position":{
"cartesian":[
1152255.80150063,-4694317.951340558,4147335.9067563135
]
}
},
{
"id":"Facility/AGI",
"name":"AGI",
"availability":"2012-03-15T10:00:00Z/2012-03-16T10:00:00Z",
"description":"<!--HTML-->\r\n<p>\r\nAnalytical Graphics, Inc. (AGI) develops commercial modeling and analysis software used by more than 40,000 global space, defense and intelligence professionals. AGI founded Cesium to meet the need for a cross-platform virtual globe with dynamic-data visualization. AGI continues to invest heavily in Cesium's development and facilitate the growth of the user and contributor community.\r\n</p>",
"billboard":{
"eyeOffset":{
"cartesian":[
0,0,0
]
},
"horizontalOrigin":"CENTER",
"image":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACvSURBVDhPrZDRDcMgDAU9GqN0lIzijw6SUbJJygUeNQgSqepJTyHG91LVVpwDdfxM3T9TSl1EXZvDwii471fivK73cBFFQNTT/d2KoGpfGOpSIkhUpgUMxq9DFEsWv4IXhlyCnhBFnZcFEEuYqbiUlNwWgMTdrZ3JbQFoEVG53rd8ztG9aPJMnBUQf/VFraBJeWnLS0RfjbKyLJA8FkT5seDYS1Qwyv8t0B/5C2ZmH2/eTGNNBgMmAAAAAElFTkSuQmCC",
"pixelOffset":{
"cartesian2":[
0,0
]
},
"scale":1.5,
"show":true,
"verticalOrigin":"CENTER"
},
"label":{
"fillColor":{
"rgba":[
0,255,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":"AGI",
"verticalOrigin":"CENTER"
},
"position":{
"cartesian":[
1216469.9357990976,-4736121.71856379,4081386.8856866374
]
}
},
{
"id":"Satellite/Geoeye1",
"name":"Geoeye1",
"availability":"2012-03-15T10:00:00Z/2012-03-16T10:00:00Z",
"description":"<!--HTML-->\r\n<p>GeoEye-1 is a high-resolution earth observation satellite owned by GeoEye, which was launched in September 2008.</p>\r\n\r\n<p>On December 1, 2004, General Dynamics C4 Systems announced it had been awarded a contract worth approximately $209 million to build the OrbView-5 satellite. Its sensor is designed by the ITT Exelis.</p>\r\n\r\n<p>The satellite, now known as GeoEye-1, was originally scheduled for April 2008 but lost its 30-day launch slot to a U.S. government mission which had been delayed. It was rescheduled for launch August 22, 2008 from Vandenberg Air Force Base aboard a Delta II launch vehicle. The launch was postponed to September 4, 2008, due to unavailability of the Big Crow telemetry-relay aircraft. It was delayed again to September 6 because Hurricane Hanna interfered with its launch crews.</p>\r\n\r\n<p>The launch took place successfully on September 6, 2008 at 11:50:57 a.m. PDT (18:50:57 UTC). The GeoEye-1 satellite separated successfully from its Delta II launch vehicle at 12:49 p.m. PDT (19:49 UTC), 58 minutes and 56 seconds after launch.</p>",
"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":[
0,255,0,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":"Geoeye 1",
"verticalOrigin":"CENTER"
},
"path":{
"show":[
{
"interval":"2012-03-15T10:00:00Z/2012-03-16T10:00:00Z",
"boolean":true
}
],
"width":1,
"material":{
"solidColor":{
"color":{
"rgba":[
0,255,0,255
]
}
}
},
"resolution":120,
//leadTime:显示路径的动画时间(以秒为单位)
"leadTime":[
{
"interval":"2012-03-15T10:00:00Z/2012-03-15T10:39:30.5752243210009Z",
"epoch":"2012-03-15T10:00:00Z",
"number":[
0,5903.376977238004,
5903.376977238004,0
]
},
{
"interval":"2012-03-15T10:39:30.5752243210009Z/2012-03-15T12:17:53.9522015590046Z",
"epoch":"2012-03-15T10:39:30.5752243210009Z",
"number":[
0,5903.376977238004,
5903.376977238004,0
]
}
//其余数据省略...
],
//trailTime:动画显示路径的时间(以秒为单位)。
"trailTime":[
{
"interval":"2012-03-15T10:00:00Z/2012-03-15T10:39:30.5752243210009Z",
"epoch":"2012-03-15T10:00:00Z",
"number":[
0,0,
5903.376977238004,5903.376977238004
]
},
{
"interval":"2012-03-15T10:39:30.5752243210009Z/2012-03-15T12:17:53.9522015590046Z",
"epoch":"2012-03-15T10:39:30.5752243210009Z",
"number":[
0,0,
5903.376977238004,5903.376977238004
]
}
//其余数据省略...
]
},
"position":{
"interpolationAlgorithm":"LAGRANGE",
"interpolationDegree":5,
"referenceFrame":"INERTIAL",
"epoch":"2012-03-15T10:00:00Z",
"cartesian":[
0,4650397.56551457,-3390535.52275848,-4087729.48877329,
300,3169722.12564676,-2787480.80604407,-5661647.74541255,
600,1369743.14695017,-1903662.23809705,-6663952.07552171,
//定义每个时间点的位置,其余数据省略
]
}
},
{
"id":"Satellite/Geoeye1/Sensor/Sensor",
"name":"Sensor",
"parent":"Satellite/Geoeye1",
"availability":"2012-03-15T10:00:00Z/2012-03-16T10:00:00Z",
"description":"<!--HTML-->\r\nGeoEye-1 primary optical sensor",
"agi_rectangularSensor":{
"xHalfAngle":0.03490658503988659,
"yHalfAngle":0.1308996938995747,
"radius":5e7,
"show":true,
"showIntersection":true,
"intersectionColor":{
"rgba":[
91,141,42,255
]
},
"intersectionWidth":1,
"portionToDisplay":"COMPLETE",
"ellipsoidSurfaceMaterial":{
"solidColor":{
"color":{
"rgba":[
255,255,255,0
]
}
}
},
"ellipsoidHorizonSurfaceMaterial":{
"solidColor":{
"color":{
"rgba":[
91,141,42,102
]
}
}
},
"lateralSurfaceMaterial":{
"solidColor":{
"color":{
"rgba":[
91,141,42,102
]
}
}
},
"domeSurfaceMaterial":{
"solidColor":{
"color":{
"rgba":[
255,255,255,0
]
}
}
}
},
"position":{
"reference":"Satellite/Geoeye1#position"
},
"orientation":{
"interpolationAlgorithm":"LAGRANGE",
"interpolationDegree":1,
"epoch":"2012-03-15T10:00:00Z",
"unitQuaternion":[
0,0.45652188368372576,-0.049580035995243577,-0.8819344359461565,0.10640131785324795,
300,0.309688526062018,-0.0592870464529779,-0.945283886004075,0.0837641797515638,
600,0.15524757622990795,-0.06613430791377527,-0.9841132393764626,0.05518673278488507,
//定义每个时间点的位置,其余数据省略
]
}
},
{
"id":"Satellite/ISS",
"name":"ISS",
"availability":"2012-03-15T10:00:00Z/2012-03-16T10:00:00Z",
"description":"<!--HTML-->\r\n<p>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.</p>\r\n\r\n<p>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.</p>\r\n\r\n<p>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.</p>",
"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
]
}
//其余数据省略...
],
"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
]
}
//其余数据省略...
]
},
"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,
//其余数据省略...
]
}
},
{
"id":"Satellite/Molniya_1-92",
"name":"Molniya_1-92",
"availability":"2012-03-15T10:00:00Z/2012-03-16T10:00:00Z",
"description":"<!--HTML-->\r\n<p>Molniya, meaning \"lightning\", was a military communications satellite system used by the Soviet Union. The satellites were placed into highly eccentric elliptical orbits known as Molniya orbits, characterised by an inclination of +63.4 degrees and a period of around 12 hours. Such orbits allowed them to remain visible to sites in polar regions for extended periods, unlike geostationary satellites in geosynchronous orbits with a 24-hour orbital period.\r\nThe Molniya program was authorized by a government decree in late 1960. After some initial failures in 1964, the first operational satellite, Molniya 1-01, was successfully launched on April 23, 1965.\r\nSince October 1967, Molniya satellites have been used by Russia to broadcast their national Orbita television network.</p>",
"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,
"show":true,
"verticalOrigin":"CENTER"
},
"label":{
"fillColor":{
"rgba":[
255,255,0,255
]
},
"font":"11pt Lucida Console",
"horizontalOrigin":"LEFT",
"outlineColor":{
"rgba":[
0,0,0,255
]
},
"outlineWidth":2,
"pixelOffset":{
"cartesian2":[
6,-4
]
},
"show":true,
"style":"FILL_AND_OUTLINE",
"text":"Molniya 1-92",
"verticalOrigin":"CENTER"
},
"path":{
"show":[
{
"interval":"2012-03-15T10:00:00Z/2012-03-16T10:00:00Z",
"boolean":true
}
],
"width":1,
"material":{
"solidColor":{
"color":{
"rgba":[
255,255,0,255
]
}
}
},
"resolution":120,
"leadTime":[
{
"interval":"2012-03-15T10:00:00Z/2012-03-15T13:11:42.0607217289944Z",
"epoch":"2012-03-15T10:00:00Z",
"number":[
0,43058.246637085,
43058.246637085,0
]
},
{
"interval":"2012-03-15T13:11:42.0607217289944Z/2012-03-15T22:02:21.7533629149984Z",
"epoch":"2012-03-15T13:11:42.0607217289944Z",
"number":[
0,43058.246637085,
43058.246637085,0
]
},
{
"interval":"2012-03-15T22:02:21.7533629149984Z/2012-03-16T10:00:00Z",
"epoch":"2012-03-15T22:02:21.7533629149984Z",
"number":[
0,43058.246637085,
43058.246637085,0
]
}
],
"trailTime":[
{
"interval":"2012-03-15T10:00:00Z/2012-03-15T13:11:42.0607217289944Z",
"epoch":"2012-03-15T10:00:00Z",
"number":[
0,0,
43058.246637085,43058.246637085
]
},
{
"interval":"2012-03-15T13:11:42.0607217289944Z/2012-03-15T22:02:21.7533629149984Z",
"epoch":"2012-03-15T13:11:42.0607217289944Z",
"number":[
0,0,
43058.246637085,43058.246637085
]
},
{
"interval":"2012-03-15T22:02:21.7533629149984Z/2012-03-16T10:00:00Z",
"epoch":"2012-03-15T22:02:21.7533629149984Z",
"number":[
0,0,
43058.246637085,43058.246637085
]
}
]
},
"position":{
"interpolationAlgorithm":"LAGRANGE",
"interpolationDegree":5,
"referenceFrame":"INERTIAL",
"epoch":"2012-03-15T10:00:00Z",
"cartesian":[
0,-14516939.0194339,-3368384.25750661,30226792.3721741,
300,-14236743.3163964,-3919702.51855093,29582289.9003049,
600,-13942424.1139376,-4467129.26191977,28908421.5359637,
//其余数据省略...
]
}
}
]

示例所用Vehicle.czml数据如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104

[
{
"id":"document",
"version":"1.0"
},
{
"id":"Vehicle",
"availability":"2012-08-04T16:00:00Z/2012-08-04T17:04:54.9962195740191Z",
"billboard":{
"eyeOffset":{
"cartesian":[
0.0,0.0,0.0
]
},
"horizontalOrigin":"CENTER",
"image":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEISURBVEhLvVXBDYQwDOuojHKj8LhBbpTbpBCEkZsmIVTXq1RVQGrHiWlLmTTqPiZBlyLgy/KSZQ5JSHDQ/mCYCsC8106kDU0AdwRnvYZArWRcAl0dcYJq1hWCb3hBrumbDAVMwAC82WoRvgMnVMDBnB0nYZFTbE6BBvdUGqVqCbjBIk3PyFFR/NU7EKzru+qZsau3ryPwwCRLKYOzutZuCL6fUmWeJGzNzL/RxAMrUmASSCkkAayk2IxPlwhAAYGpsiHQjbLccfdOY5gKkCXAMi7SscAwbQpAnKyctWyUZ6z8ja3OGMepwD8asz+9FnSvbhU8uVOHFIwQsI3/p0CfhuqCSQuxLqsN6mu8SS+N42MAAAAASUVORK5CYII=",
"pixelOffset":{
"cartesian2":[
0.0,0.0
]
},
"scale":0.8333333333333334,
"show":[
{
"interval":"2012-08-04T16:00:00Z/2012-08-04T18:00:00Z",
"boolean":true
}
],
"verticalOrigin":"BOTTOM"
},
"label":{
"fillColor":[
{
"interval":"2012-08-04T16:00:00Z/2012-08-04T18:00:00Z",
"rgba":[
255,255,0,255
]
}
],
"font":"bold 10pt Segoe UI Semibold",
"horizontalOrigin":"LEFT",
"outlineColor":{
"rgba":[
0,0,0,255
]
},
"pixelOffset":{
"cartesian2":[
10.0,0.0
]
},
"scale":1.0,
"show":[
{
"interval":"2012-08-04T16:00:00Z/2012-08-04T18:00:00Z",
"boolean":true
}
],
"style":"FILL",
"text":"Vehicle",
"verticalOrigin":"CENTER"
},
"path":{
"material":{
"solidColor":{
"color":{
"interval":"2012-08-04T16:00:00Z/2012-08-04T18:00:00Z",
"rgba":[
255,255,0,255
]
}
}
},
"width":[
{
"interval":"2012-08-04T16:00:00Z/2012-08-04T18:00:00Z",
"number":5.0
}
],
"show":[
{
"interval":"2012-08-04T16:00:00Z/2012-08-04T18:00:00Z",
"boolean":true
}
]
},
"position":{
"interpolationAlgorithm":"LAGRANGE",
"interpolationDegree":1,
"epoch":"2012-08-04T16:00:00Z",
"cartesian":[
0.0,-2379754.6637012,-4665332.88013588,3628133.68924173,
10.0,-2379510.08905552,-4665419.64840452,3628182.20006795,
20.0,-2379568.4769522,-4665555.3441867,3627970.83323261,
30.0,-2379638.93786855,-4665691.63561896,3627750.82085873,
40.0,-2379709.29834665,-4665827.9679646,3627530.80187124,
50.0,-2379837.28064915,-4665847.7494347,3627422.12874017,
60.0,-2379624.98289073,-4665907.50853722,3627484.1191848,
//其余数据省略...
]
}
}
]

示例代码如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const viewer = new Cesium.Viewer("cesiumContainer", {
shouldAnimate: true,
});

Sandcastle.addDefaultToolbarButton("Satellites", function () {
viewer.dataSources.add(
Cesium.CzmlDataSource.load("../SampleData/simple.czml"),
);

viewer.camera.flyHome(0);
});

Sandcastle.addToolbarButton("Vehicle", function () {
viewer.dataSources.add(
Cesium.CzmlDataSource.load("../SampleData/Vehicle.czml"),
);

viewer.scene.camera.setView({
destination: Cesium.Cartesian3.fromDegrees(-116.52, 35.02, 95000),
orientation: {
heading: 6,
},
});
});

Sandcastle.reset = function () {
viewer.dataSources.removeAll();
};

CZML属性解析

clock属性

  • interval: 时间轴范围(区间),即整个动画的时间范围
  • currentTime: 当前时间,即动画的起始(开始)时间
  • step: 对应cesium的ClockStep属性,用来确定每次调用Clock.tick时前进多少时间。属性值如下:
    • TICK_DEPENDENT: 将当前时间提前一个固定的步长,即提前Clock.multiplier指定的秒数,时间流速 = 帧间隔(FPS) × multiplier;
    • SYSTEM_CLOCK_MULTIPLIER: 系统时钟倍速模式,通过 multiplier 参数加速或减速。
      • multiplier > 1:时间快进(如 multiplier=2 表示时间流速是实时的 2 倍);
      • multiplier < 0:时间倒流(如 multiplier=-1 表示时间反向流动);
      • multiplier = 0:时间停止。
    • SYSTEM_CLOCK: 默认设置,时间间隔默认是1秒,即将 clock 设置为当前系统时间,忽略所有其他设置;
  • range: 用于定义当时钟的当前时间(currentTime)超过设定的时间范围(startTime 和 endTime)时的行为模式。
    • UNBOUNDED:直译为无限的,不受控制的。 即使超过预设的 endTime,时间仍会继续前进,不会停止或跳转‘
    • CLAMPED: 时间被严格限制在 [startTime, endTime] 范围内;
    • LOOP_STOP: 循环模式。时间到达 endTime 后,自动跳回 startTime 重新开始。
  • multiplier:
    • SYSTEM_CLOCK模式下,multiplier = 1;
    • 当值大于1则为加速,值小于1为减速,当值小于0时为倒放;
    • 逐帧步进需要设置ClockStep为TICK_DEPENDENT

扩展:FPS,frame per second,即每秒帧数,即每秒播放的静止画面。

availability属性

availability属性:对象数据可用的时间间隔集。该属性可以是指定单个间隔的单个字符串,也可以是表示间隔的字符串数组。

其余属性待学习,后续有时间慢慢研究😏