Skip to content

Commit 6435ac9

Browse files
committed
change directory
1 parent 2b3608e commit 6435ac9

File tree

8 files changed

+1574
-0
lines changed

8 files changed

+1574
-0
lines changed

js/MFOC/README.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# Moving Feature On Cesium
2+
3+
## Visualize Movement
4+
5+
* movePolygonArray([movingfeature_array], with_height);
6+
7+
movingfeature is moving feature json object array.
8+
9+
'with_height' means path of animation with own height.(boolean)
10+
11+
return czml.
12+
13+
```js
14+
var mf1 = {
15+
"type" : "MovingFeature",
16+
"properties" : {
17+
"name" : "台風201513号 (LINEAR) "
18+
},
19+
"temporalGeometry" : {
20+
"type" : "MovingPolygon",
21+
"datetimes" : [ "2015-07-30 03:00:00",..., "2015-08-12 09:00:00" ],
22+
"coordinates" : [ [ [ 163.2, 13.3 ], [ 162.90710678118654, 12.592893218813453 ], ..., [ 123.7, 33.3 ], [ 124.57867965644036, 35.42132034355964 ], [ 126.7, 36.3 ], [ 128.82132034355965, 35.42132034355964 ], [ 129.7, 33.3 ] ] ],
23+
"interpolations" : "Linear"
24+
},
25+
"temporalProperties" : [ {
26+
"name" : "central pressure",
27+
"uom" : "hPa",
28+
"values" : [ 1006.0, 1004.0, 1004.0,..., 1000.0, 1000.0, 1000.0 ],
29+
"datetimes" : [ "2015-07-30 03:00:00", ..., "2015-08-12 09:00:00" ],
30+
"interpolations" : "Linear"
31+
}, {
32+
"name" : "Max wind speed",
33+
"uom" : "kt",
34+
"values" : [ 0.0, 0.0,..., 0.0, 0.0 ],
35+
"datetimes" : [ "2015-07-30 03:00:00",.., "2015-08-11 03:00:00", "2015-08-11 09:00:00", "2015-08-11 15:00:00", "2015-08-11 21:00:00", "2015-08-12 03:00:00", "2015-08-12 09:00:00" ],
36+
"interpolations" : "Linear"
37+
} ]
38+
}
39+
var mf_arr = [ mf1, mf2 ]; //mf is movingfeature object.
40+
var czml = movePolygonArray(mf_arr);
41+
```
42+
43+
* movePointArray([mf_arr], with_height);
44+
45+
* moveLineStringArray([mf_arr], with_height);
46+
47+
## Draw Primitive
48+
49+
* drawPolygons([mf_arr], with_height)
50+
51+
draw multiple Polygon.
52+
53+
return Cesium.primitiveCollection
54+
55+
* drawTyphoons([mf_arr], with_height)
56+
57+
draw multiple Polygon With Volume.
58+
59+
* drawPoints([mf_arr], with_height)
60+
61+
draw multiple Point.
62+
63+
* drawLines([mf_arr], with_height)
64+
65+
draw multiple LineString.
66+
67+
## view Properties graph
68+
69+
* showProperty([obj_arr], div_id)
70+
71+
showProperties by d3 graph. (https://github.com/d3/d3/blob/master/API.md)
72+
73+
```js
74+
<div id="graph" class="graph" > </svg>
75+
var property1 = {
76+
"name" : "central pressure",
77+
"uom" : "hPa",
78+
"values" : [ 1006.0, ..., 1000.0 ],
79+
"datetimes" : [ "2015-07-30 03:00:00",..., "2015-08-12 09:00:00" ],
80+
"interpolations" : "Linear"
81+
}
82+
var property2 = { ...}
83+
showProperty([property1, property2,..], 'graph');
84+
```

0 commit comments

Comments
 (0)