CZML Corridor
- "corridor":
{ "positions": { "cartographicDegrees": [lon0, lat0, h0, lon1, lat1, h1, ...] }, "width": <number>, "cornerType": "ROUNDED"|"MITERED"|"BEVELED", "height": <number>, "extrudedHeight": <number>, "material": { "solidColor": { "color": { "rgba": [r,g,b,a] } } }, "outline": true|false, "outlineColor": { "rgba": [r,g,b,a] }, "show": true|false } — a shape
defined by a centerline ("positions") and "width" (the distance between its edges), conforming
to the globe's curvature.
- "cornerType" defaults to
"ROUNDED" if omitted; set it explicitly when the intent specifies a
corner style.
- Omit "height"/"extrudedHeight" for a corridor clamped to the ground; set "extrudedHeight" to
give it volume above "height".
Example: three corridors, one per corner type
[
{ "id": "document", "name": "Corridors", "version": "1.0" },
{
"id": "corridor-rounded",
"corridor": {
"positions": { "cartographicDegrees": [-90, 30, 0, -89.5, 30.5, 0, -89, 30, 0] },
"width": 20000,
"cornerType": "ROUNDED",
"material": { "solidColor": { "color": { "rgba": [255, 0, 0, 255] } } }
}
},
{
"id": "corridor-mitered",
"corridor": {
"positions": { "cartographicDegrees": [-88, 30, 5000, -87.5, 30.5, 5000, -87, 30, 5000] },
"width": 20000,
"height": 5000,
"cornerType": "MITERED",
"material": { "solidColor": { "color": { "rgba": [0, 255, 0, 255] } } },
"outline": true,
"outlineColor": { "rgba": [0, 0, 0, 255] }
}
},
{
"id": "corridor-beveled",
"corridor": {
"positions": { "cartographicDegrees": [-86, 30, 0, -85.5, 30.5, 0, -85, 30, 0] },
"width": 20000,
"extrudedHeight": 10000,
"cornerType": "BEVELED",
"material": { "solidColor": { "color": { "rgba": [0, 0, 255, 255] } } },
"outline": true,
"outlineColor": { "rgba": [0, 0, 0, 255] }
}
}
]
1---2name: czml-corridor3description: CZML corridors — fixed-width strips or roads that follow a centerline path along the ground or at altitude, with configurable corner styles. Use when the intent describes a corridor, road, fixed-width strip along a route, or a path with rounded, mitered, or beveled corners.4---56# CZML Corridor78- "corridor": `{ "positions": { "cartographicDegrees": [lon0, lat0, h0, lon1, lat1, h1, ...] },9"width": <number>, "cornerType": "ROUNDED"|"MITERED"|"BEVELED", "height": <number>,10"extrudedHeight": <number>, "material": { "solidColor": { "color": { "rgba": [r,g,b,a] } } },11"outline": true|false, "outlineColor": { "rgba": [r,g,b,a] }, "show": true|false }` — a shape12 defined by a centerline ("positions") and "width" (the distance between its edges), conforming13 to the globe's curvature.14- "cornerType" defaults to `"ROUNDED"` if omitted; set it explicitly when the intent specifies a15 corner style.16- Omit "height"/"extrudedHeight" for a corridor clamped to the ground; set "extrudedHeight" to17 give it volume above "height".1819## Example: three corridors, one per corner type2021```json22[23 { "id": "document", "name": "Corridors", "version": "1.0" },24 {25 "id": "corridor-rounded",26 "corridor": {27 "positions": { "cartographicDegrees": [-90, 30, 0, -89.5, 30.5, 0, -89, 30, 0] },28 "width": 20000,29 "cornerType": "ROUNDED",30 "material": { "solidColor": { "color": { "rgba": [255, 0, 0, 255] } } }31 }32 },33 {34 "id": "corridor-mitered",35 "corridor": {36 "positions": { "cartographicDegrees": [-88, 30, 5000, -87.5, 30.5, 5000, -87, 30, 5000] },37 "width": 20000,38 "height": 5000,39 "cornerType": "MITERED",40 "material": { "solidColor": { "color": { "rgba": [0, 255, 0, 255] } } },41 "outline": true,42 "outlineColor": { "rgba": [0, 0, 0, 255] }43 }44 },45 {46 "id": "corridor-beveled",47 "corridor": {48 "positions": { "cartographicDegrees": [-86, 30, 0, -85.5, 30.5, 0, -85, 30, 0] },49 "width": 20000,50 "extrudedHeight": 10000,51 "cornerType": "BEVELED",52 "material": { "solidColor": { "color": { "rgba": [0, 0, 255, 255] } } },53 "outline": true,54 "outlineColor": { "rgba": [0, 0, 0, 255] }55 }56 }57]58```