Skip to content

Commit c0cf087

Browse files
authored
Merge pull request #6320 from AnalyticalGraphicsInc/multipart-czml-demo
Add a demo showing how a single entity can be split across CZML files.
2 parents 27567dd + ed3fad2 commit c0cf087

6 files changed

+692
-3
lines changed
+244
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,244 @@
1+
[
2+
{
3+
"id":"document",
4+
"version":"1.0"
5+
},
6+
{
7+
"id":"Vehicle",
8+
"availability":"2012-08-04T16:00:00Z/2012-08-04T17:04:54.9962195740191Z",
9+
"label":{
10+
"fillColor":[
11+
{
12+
"interval":"2012-08-04T16:00:00Z/2012-08-04T18:00:00Z",
13+
"rgba":[
14+
255,255,0,255
15+
]
16+
}
17+
],
18+
"font":"bold 10pt Segoe UI Semibold",
19+
"horizontalOrigin":"CENTER",
20+
"outlineColor":{
21+
"rgba":[
22+
0,0,0,255
23+
]
24+
},
25+
"pixelOffset":{
26+
"cartesian2":[
27+
0.0,20.0
28+
]
29+
},
30+
"scale":1.0,
31+
"show":[
32+
{
33+
"interval":"2012-08-04T16:00:00Z/2012-08-04T18:00:00Z",
34+
"boolean":true
35+
}
36+
],
37+
"style":"FILL",
38+
"text":"Test Vehicle",
39+
"verticalOrigin":"CENTER"
40+
},
41+
"model":{
42+
"gltf":"models/CesiumMilkTruck/CesiumMilkTruck.glb",
43+
"minimumPixelSize":100,
44+
"maximumScale":50
45+
},
46+
"orientation" : {
47+
"velocityReference": "#position"
48+
},
49+
"viewFrom": {
50+
"cartesian": [ -2080, -1715, 779 ]
51+
},
52+
"properties" : {
53+
"fuel_remaining" : {
54+
"epoch":"2012-08-04T16:00:00Z",
55+
"number": [
56+
0, 22.5,
57+
1500, 21.2
58+
]
59+
}
60+
},
61+
"path":{
62+
"material":{
63+
"solidColor":{
64+
"color":{
65+
"interval":"2012-08-04T16:00:00Z/2012-08-04T18:00:00Z",
66+
"rgba":[
67+
255,255,0,255
68+
]
69+
}
70+
}
71+
},
72+
"width":[
73+
{
74+
"interval":"2012-08-04T16:00:00Z/2012-08-04T18:00:00Z",
75+
"number":5.0
76+
}
77+
],
78+
"show":[
79+
{
80+
"interval":"2012-08-04T16:00:00Z/2012-08-04T18:00:00Z",
81+
"boolean":true
82+
}
83+
]
84+
},
85+
"position":{
86+
"interpolationAlgorithm":"LAGRANGE",
87+
"interpolationDegree":1,
88+
"epoch":"2012-08-04T16:00:00Z",
89+
"cartesian":[
90+
0.0,-2379754.6637012,-4665332.88013588,3628133.68924173,
91+
10.0,-2379510.08905552,-4665419.64840452,3628182.20006795,
92+
20.0,-2379568.4769522,-4665555.3441867,3627970.83323261,
93+
30.0,-2379638.93786855,-4665691.63561896,3627750.82085873,
94+
40.0,-2379709.29834665,-4665827.9679646,3627530.80187124,
95+
50.0,-2379837.28064915,-4665847.7494347,3627422.12874017,
96+
60.0,-2379624.98289073,-4665907.50853722,3627484.1191848,
97+
70.0,-2379386.12743523,-4666029.54174431,3627483.83297459,
98+
80.0,-2379147.26777171,-4666151.56669944,3627483.5403492,
99+
90.0,-2378908.40390057,-4666273.58340244,3627483.24130864,
100+
1e2,-2378663.69301645,-4666379.62408751,3627507.14485116,
101+
110.0,-2378416.29648478,-4666444.93145547,3627584.82610021,
102+
120.0,-2378184.75115833,-4666458.05260387,3627718.84628509,
103+
130.0,-2377958.22637221,-4666461.11592729,3627862.42864636,
104+
140.0,-2377733.79758374,-4666460.508441,3628009.31669747,
105+
150.0,-2377509.36460154,-4666459.89268533,3628156.19830638,
106+
160.0,-2377284.92742603,-4666459.26866028,3628303.07347284,
107+
170.0,-2377060.48605759,-4666458.63636585,3628449.9421966,
108+
180.0,-2376835.38472681,-4666459.12413084,3628595.78980713,
109+
190.0,-2376609.71084875,-4666460.58154837,3628740.75156098,
110+
2e2,-2376384.03277903,-4666462.03069678,3628885.70687201,
111+
210.0,-2376158.35051806,-4666463.47157605,3629030.65573998,
112+
220.0,-2375928.48736859,-4666473.69575712,3629167.08552075,
113+
230.0,-2375685.23921682,-4666516.66377513,3629270.3788586,
114+
240.0,-2375437.34307768,-4666580.50029931,3629350.0215939,
115+
250.0,-2375189.01133306,-4666646.99320452,3629426.53515423,
116+
260.0,-2374940.52675783,-4666719.29042452,3629495.71527129,
117+
270.0,-2374695.15633549,-4666818.94185605,3629527.91579302,
118+
280.0,-2374469.42323533,-4666959.02687352,3629495.69349509,
119+
290.0,-2374249.06659405,-4667105.51477438,3629451.77975513,
120+
3e2,-2374028.70574724,-4667251.99442379,3629407.85959417,
121+
310.0,-2373808.3406953,-4667398.46582147,3629363.9330123,
122+
320.0,-2373585.10773309,-4667542.05948567,3629325.52597676,
123+
330.0,-2373360.83645524,-4667684.60869937,3629289.10800226,
124+
340.0,-2373136.5609746,-4667827.1496603,3629252.68360778,
125+
350.0,-2372912.28129155,-4667969.68236819,3629216.25279339,
126+
360.0,-2372687.9974065,-4668112.20682281,3629179.81555915,
127+
370.0,-2372463.70931983,-4668254.72302389,3629143.37190511,
128+
380.0,-2372239.41703195,-4668397.2309712,3629106.92183136,
129+
390.0,-2372018.7615611,-4668543.12509124,3629063.76398058,
130+
4e2,-2371803.72586004,-4668694.25404103,3629010.24868951,
131+
410.0,-2371587.17705087,-4668844.01756398,3628959.44085712,
132+
420.0,-2371365.33472237,-4668989.01539779,3628918.13984128,
133+
430.0,-2371134.7547923,-4669122.83460485,3628896.77687771,
134+
440.0,-2370898.14635373,-4669248.94021679,3628889.16522147,
135+
450.0,-2370660.31892949,-4669372.89697404,3628885.07134974,
136+
460.0,-2370422.47459187,-4669496.82305927,3628881.00796265,
137+
470.0,-2370184.62606153,-4669620.7408867,3628876.93815788,
138+
480.0,-2369946.77333888,-4669744.65045611,3628872.86193545,
139+
490.0,-2369708.91642433,-4669868.55176729,3628868.77929537,
140+
5e2,-2369471.05531832,-4669992.44482001,3628864.69023764,
141+
510.0,-2369233.19002126,-4670116.32961405,3628860.59476226,
142+
520.0,-2368989.65950726,-4670225.94237244,3628878.39787596,
143+
530.0,-2368742.64810033,-4670324.93393451,3628912.01606989,
144+
540.0,-2368494.95906007,-4670419.65546435,3628951.51257903,
145+
550.0,-2368248.2848424,-4670519.53079746,3628983.74302284,
146+
560.0,-2368001.37437725,-4670618.8319301,3629016.84097985,
147+
570.0,-2367753.95809484,-4670715.82368808,3629053.19940679,
148+
580.0,-2367506.53762994,-4670812.80718267,3629089.55141416,
149+
590.0,-2367259.11298298,-4670909.78241366,3629125.89700192,
150+
6e2,-2367011.6841544,-4671006.74938092,3629162.23617,
151+
610.0,-2366764.25114462,-4671103.70808425,3629198.56891833,
152+
620.0,-2366516.81395411,-4671200.6585235,3629234.89524684,
153+
630.0,-2366269.37258329,-4671297.60069848,3629271.21515549,
154+
640.0,-2366021.9270326,-4671394.53460904,3629307.52864419,
155+
650.0,-2365774.47730247,-4671491.460255,3629343.8357129,
156+
660.0,-2365527.02339333,-4671588.37763618,3629380.13636155,
157+
670.0,-2365279.56530564,-4671685.28675242,3629416.43059006,
158+
680.0,-2365032.10303983,-4671782.18760355,3629452.71839837,
159+
690.0,-2364784.63659633,-4671879.0801894,3629488.99978644,
160+
7e2,-2364537.16597558,-4671975.96450979,3629525.27475418,
161+
710.0,-2364289.69117801,-4672072.84056456,3629561.54330154,
162+
720.0,-2364042.21220407,-4672169.70835353,3629597.80542845,
163+
730.0,-2363794.72905419,-4672266.56787654,3629634.06113485,
164+
740.0,-2363547.2417288,-4672363.41913342,3629670.31042068,
165+
750.0,-2363299.75022835,-4672460.26212398,3629706.55328587,
166+
760.0,-2363052.25455328,-4672557.09684808,3629742.78973036,
167+
770.0,-2362805.96213832,-4672658.44235501,3629772.46055,
168+
780.0,-2362566.28756432,-4672777.84646024,3629774.74120741,
169+
790.0,-2362330.01543718,-4672904.47715606,3629765.56158533,
170+
8e2,-2362093.73913086,-4673031.09958839,3629756.37554393,
171+
810.0,-2361857.4586458,-4673157.71375702,3629747.18308323,
172+
820.0,-2361621.17398239,-4673284.31966172,3629737.98420324,
173+
830.0,-2361379.13396171,-4673398.62592987,3629748.21496888,
174+
840.0,-2361130.58722369,-4673488.59963461,3629793.74986512,
175+
850.0,-2360881.58098042,-4673573.14384665,3629846.50583809,
176+
860.0,-2360632.51954154,-4673657.07225834,3629900.06533886,
177+
870.0,-2360383.45393477,-4673740.99239963,3629953.61841672,
178+
880.0,-2360134.38416057,-4673824.90427038,3630007.16507155,
179+
890.0,-2359885.31021938,-4673908.80787044,3630060.70530326,
180+
9e2,-2359636.23211162,-4673992.70319966,3630114.23911177,
181+
910.0,-2359387.14983775,-4674076.5902579,3630167.76649697,
182+
920.0,-2359138.06339821,-4674160.469045,3630221.28745878,
183+
930.0,-2358889.14548278,-4674246.80164025,3630271.54165003,
184+
940.0,-2358640.17887385,-4674332.39488805,3630322.75317441,
185+
950.0,-2358391.03374684,-4674415.32432296,3630377.46713032,
186+
960.0,-2358141.88445605,-4674498.24548602,3630432.17466229,
187+
970.0,-2357892.7310019,-4674581.15837706,3630486.87577026,
188+
980.0,-2357643.59031994,-4674664.39449658,3630541.13554932,
189+
990.0,-2357394.48770584,-4674748.44899573,3630594.30439711,
190+
1e3,-2357145.38092955,-4674832.4952226,3630647.46682079,
191+
1010.0,-2356896.26999152,-4674916.53317705,3630700.62282028,
192+
1020.0,-2356647.15489217,-4675000.56285892,3630753.77239547,
193+
1030.0,-2356398.03563196,-4675084.58426807,3630806.91554629,
194+
1040.0,-2356148.91221132,-4675168.59740435,3630860.05227262,
195+
1050.0,-2355899.78463069,-4675252.60226762,3630913.18257437,
196+
1060.0,-2355650.65289051,-4675336.59885772,3630966.30645147,
197+
1070.0,-2355401.51699122,-4675420.58717452,3631019.42390381,
198+
1080.0,-2355152.37693328,-4675504.56721785,3631072.5349313,
199+
1090.0,-2354903.2327171,-4675588.53898758,3631125.63953384,
200+
1.1e3,-2354654.08434313,-4675672.50248355,3631178.73771134,
201+
1110.0,-2354404.86337217,-4675754.50046618,3631234.37690825,
202+
1120.0,-2354155.84214723,-4675830.29554952,3631297.80148619,
203+
1130.0,-2353909.99308372,-4675880.61174319,3631391.75187422,
204+
1140.0,-2353667.55938687,-4675917.7532863,3631500.33400567,
205+
1150.0,-2353425.14548842,-4675954.80919402,3631608.99321685,
206+
1160.0,-2353182.7274392,-4675991.85682064,3631717.64599126,
207+
1170.0,-2352940.30523964,-4676028.89616608,3631826.29232871,
208+
1180.0,-2352697.87889015,-4676065.92723028,3631934.93222899,
209+
1190.0,-2352455.44839119,-4676102.95001317,3632043.56569193,
210+
1.2e3,-2352213.01374317,-4676139.9645147,3632152.19271733,
211+
1210.0,-2351970.57494653,-4676176.97073479,3632260.81330501,
212+
1220.0,-2351728.13200169,-4676213.96867339,3632369.42745476,
213+
1230.0,-2351485.68490907,-4676250.95833043,3632478.03516641,
214+
1240.0,-2351243.23366913,-4676287.93970586,3632586.63643975,
215+
1250.0,-2351000.77828228,-4676324.91279958,3632695.2312746,
216+
1260.0,-2350758.31874895,-4676361.87761156,3632803.81967077,
217+
1270.0,-2350515.85506957,-4676398.83414172,3632912.40162807,
218+
1280.0,-2350273.38724458,-4676435.78239001,3633020.9771463,
219+
1290.0,-2350029.47875804,-4676477.3914753,3633124.49944636,
220+
1.3e3,-2349785.42349382,-4676519.45587927,3633227.51421022,
221+
1310.0,-2349541.36408501,-4676561.51200187,3633330.52253589,
222+
1320.0,-2349297.30053206,-4676603.55984302,3633433.52442318,
223+
1330.0,-2349053.2328354,-4676645.59940266,3633536.51987191,
224+
1340.0,-2348809.16099546,-4676687.63068071,3633639.50888189,
225+
1350.0,-2348565.08501267,-4676729.65367709,3633742.49145297,
226+
1360.0,-2348321.00488746,-4676771.66839174,3633845.46758493,
227+
1370.0,-2348076.92062027,-4676813.67482458,3633948.43727762,
228+
1380.0,-2347832.83221153,-4676855.67297554,3634051.40053084,
229+
1390.0,-2347588.73966167,-4676897.66284454,3634154.35734442,
230+
1.4e3,-2347344.64297113,-4676939.64443151,3634257.30771818,
231+
1410.0,-2347101.04731466,-4676979.96034855,3634362.04616856,
232+
1420.0,-2346858.26575513,-4677017.5834931,3634469.6847769,
233+
1430.0,-2346614.99348312,-4677056.89461847,3634575.46081166,
234+
1440.0,-2346369.55744615,-4677103.7262244,3634672.99207759,
235+
1450.0,-2346124.8248997,-4677147.9423086,3634773.39569376,
236+
1460.0,-2345880.74403986,-4677189.73374292,3634876.46090671,
237+
1470.0,-2345636.65904236,-4677231.51689469,3634979.51967852,
238+
1480.0,-2345392.56990766,-4677273.29176384,3635082.57200902,
239+
1490.0,-2345148.47663614,-4677315.05835029,3635185.61789803,
240+
1.5e3,-2344904.37922829,-4677356.81665397,3635288.65734536
241+
]
242+
}
243+
}
244+
]

0 commit comments

Comments
 (0)