Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change refine to inherit from parent #52

Merged
merged 2 commits into from
Jan 15, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ The `boundingVolume.region` property is an array of six numbers that define the

The `geometricError` property is a nonnegative number that defines 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. The SSE determines _Hierarchical Level of Detail_ (HLOD) refinement, i.e., if a tile is sufficiently detailed for the current view or if its children should be considered.

The `refine` property is an optional string that is either `"replace"` for replacement refinement or `"add"` for additive refinement. When `refine` is omitted, it defaults to `"add"`.
The `refine` property is a string that is either `"replace"` for replacement refinement or `"add"` for additive refinement. It is required for the root tile of a tileset; it is optional for all other tiles. When `refine` is omitted, it is inherited from the parent tile.

The `content` property is an object that contains metadata about the tile's content and a link to the content. `content.url` is a string that points to the tile's contents with an absolute or relative url. In the example above, the url, `2/0/0.b3dm`, has a TMS tiling scheme, `{z}/{y}/{x}.extension`, but this is not required; see the [roadmap Q&A](#How-do-I-request-the-tiles-for-Level-n).

Expand Down
1 change: 1 addition & 0 deletions examples/tiles.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"url": "0/0/0.b3dm"
},
"geometricError": 268.37878244706053,
"refine": "add",
"children": [
{
"boundingVolume": {
Expand Down
7 changes: 3 additions & 4 deletions schema/tile.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
},
"refine" : {
"type" : "string",
"description" : "Specifies if additive or replacement refinement is used when traversing the tileset for rendering.",
"enum" : ["add", "replace"],
"default" : "add"
},
"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"]
},
"content" : {
"extends" : { "$ref" : "tile.content.schema.json" },
"description" : "Metadata about the tile's content and a link to the content. When this is omitted the tile is just used for culling."
Expand Down