forked from CesiumGS/3d-tiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtile.schema.json
51 lines (51 loc) · 3 KB
/
tile.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
45
46
47
48
49
50
51
{
"$schema" : "http://json-schema.org/draft-04/schema",
"id" : "tile.schema.json",
"title" : "Tile",
"type" : "object",
"description" : "A tile in a 3D Tiles tileset.",
"properties" : {
"boundingVolume" : {
"description" : "The bounding volume that encloses the tile.",
"$ref" : "boundingVolume.schema.json"
},
"viewerRequestVolume" : {
"extends" : { "$ref" : "boundingVolume.schema.json" },
"description" : "Optional bounding volume that defines the volume that the viewer must be inside of before the tile's content will be requested and before the tile will be refined based on geometricError."
},
"geometricError" : {
"type" : "number",
"description" : "The error, in meters, introduced if this tile is rendered and its children are not. At runtime, the geometric error is used to compute Screen-Space Error (SSE), i.e., the error measured in pixels.",
"minimum" : 0
},
"refine" : {
"type" : "string",
"description" : "Specifies if additive or replacement refinement is used when traversing the tileset for rendering. This property is required for the root tile of a tileset; it is optional for all other tiles. The default is to inherit from the parent tile.",
"enum" : ["add", "replace"]
},
"transform" : {
"type" : "array",
"description" : "A floating-point 4x4 affine transformation matrix, stored in column-major order, that transforms the tile's content, i.e., its features and content.boundingVolume, and boundingVolume and viewerRequestVolume from the tile's local coordinate system to the parent tile's coordinate system, or tileset's coordinate system in the case of the root tile. transform does not apply to geometricError nor does it apply any volume property when the volume is a region, which is defined in WGS84.",
"items" : {
"type": "number"
},
"minItems" : 16,
"maxItems" : 16,
"default" : [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ]
},
"content" : {
"description" : "Metadata about the tile's content and a link to the content. When this is omitted the tile is just used for culling. This is required for leaf tiles.",
"$ref" : "tile.content.schema.json"
},
"children" : {
"type" : "array",
"description" : "An array of objects that define child tiles. Each child tile has a box fully enclosed by its parent tile's box and, generally, a geometricError less than its parent tile's geometricError. For leaf tiles, the length of this array is zero, and children may not be defined.",
"items" : {
"$ref" : "tile.schema.json"
},
"uniqueItems" : true
}
},
"required" : ["boundingVolume", "geometricError"],
"additionalProperties" : false
}