forked from CesiumGS/3d-tiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
boundingVolume.schema.json
44 lines (44 loc) · 1.95 KB
/
boundingVolume.schema.json
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
{
"$schema" : "http://json-schema.org/draft-04/schema",
"id" : "boundingVolume.schema.json",
"title" : "Bounding Volume",
"type" : "object",
"description" : "A bounding volume that encloses a tile or its contents. Exactly one property is required.",
"properties" : {
"box" : {
"type" : "array",
"description" : "An array of 12 numbers that define an oriented bounding box. The first three elements define the x, y, and z values for the center of the box. The next three elements (with indices 3, 4, and 5) define the x axis direction and length. The next three elements (indices 6, 7, and 8) define the y axis direction and length. The last three elements (indices 9, 10, and 11) define the z axis direction and length.",
"items" : {
"type" : "number"
},
"minItems" : 12,
"maxItems" : 12
},
"region" : {
"type" : "array",
"description" : "An array of six numbers that define a bounding geographic region with the order [west, south, east, north, minimum height, maximum height]. Longitudes and latitudes are in radians, and heights are in meters above (or below) the WGS84 ellipsoid.",
"items" : {
"type" : "number"
},
"minItems" : 6,
"maxItems" : 6
},
"sphere" : {
"type" : "array",
"description" : "An array of four numbers that define a bounding sphere. The first three elements define the x, y, and z values for the center of the sphere. The last element (with index 3) defines the radius in meters.",
"items" : {
"type" : "number"
},
"minItems" : 4,
"maxItems" : 4
}
},
"oneOf" : [{
"required" : ["box"]
}, {
"required" : ["region"]
}, {
"required" : ["sphere"]
}],
"additionalProperties" : false
}