CZML Cylinder
- "cylinder":
{ "length": <number>, "topRadius": <number>, "bottomRadius": <number>, "material": { "solidColor": { "color": { "rgba": [r,g,b,a] } } }, "fill": true|false, "outline": true|false, "outlineColor": { "rgba": [r,g,b,a] }, "show": true|false } — a
cylinder, truncated cone, or cone centered on the entity's "position", oriented vertically by
default.
- A cone is just a cylinder with
"topRadius": 0.
- "length" is the total height in meters; "topRadius"/"bottomRadius" are in meters.
Example: a green cylinder and a red cone
[
{ "id": "document", "name": "Cylinders", "version": "1.0" },
{
"id": "cylinder-1",
"position": { "cartographicDegrees": [-75, 40, 100000] },
"cylinder": {
"length": 200000,
"topRadius": 100000,
"bottomRadius": 100000,
"material": { "solidColor": { "color": { "rgba": [0, 255, 0, 255] } } },
"outline": true,
"outlineColor": { "rgba": [0, 0, 0, 255] }
}
},
{
"id": "cone-1",
"position": { "cartographicDegrees": [-73, 40, 100000] },
"cylinder": {
"length": 200000,
"topRadius": 0,
"bottomRadius": 100000,
"material": { "solidColor": { "color": { "rgba": [255, 0, 0, 255] } } }
}
}
]
1---2name: czml-cylinder3description: CZML cylinders and cones for towers, sensor volumes, or tapered 3D shapes. Use when the intent describes a cylinder, cone, tapered column, tower, or truncated-cone shape, with a top radius, bottom radius, and length.4---56# CZML Cylinder78- "cylinder": `{ "length": <number>, "topRadius": <number>, "bottomRadius": <number>,9"material": { "solidColor": { "color": { "rgba": [r,g,b,a] } } }, "fill": true|false,10"outline": true|false, "outlineColor": { "rgba": [r,g,b,a] }, "show": true|false }` — a11 cylinder, truncated cone, or cone centered on the entity's "position", oriented vertically by12 default.13- A cone is just a cylinder with `"topRadius": 0`.14- "length" is the total height in meters; "topRadius"/"bottomRadius" are in meters.1516## Example: a green cylinder and a red cone1718```json19[20 { "id": "document", "name": "Cylinders", "version": "1.0" },21 {22 "id": "cylinder-1",23 "position": { "cartographicDegrees": [-75, 40, 100000] },24 "cylinder": {25 "length": 200000,26 "topRadius": 100000,27 "bottomRadius": 100000,28 "material": { "solidColor": { "color": { "rgba": [0, 255, 0, 255] } } },29 "outline": true,30 "outlineColor": { "rgba": [0, 0, 0, 255] }31 }32 },33 {34 "id": "cone-1",35 "position": { "cartographicDegrees": [-73, 40, 100000] },36 "cylinder": {37 "length": 200000,38 "topRadius": 0,39 "bottomRadius": 100000,40 "material": { "solidColor": { "color": { "rgba": [255, 0, 0, 255] } } }41 }42 }43]44```