Skip to content

Commit

Permalink
add layers (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed May 25, 2023
1 parent 8612b5f commit 0e36f25
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
22 changes: 22 additions & 0 deletions 0.0.3/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,3 +281,25 @@ TileMatrixSet used for the `quadkey` definition. The TMS document should be comp
}
}
```

## 3.17 `layers`

OPTIONAL. Object.

A set of `layer` configurations. Implementations MAY use the entries to define a set of available `layers` and use the configuration to create tiles.

```JSON
{
"layers": {
"true_color": {
"bidx": ["b1", "b2", "b3"],
"color_formula": "Gamma RGB 3.5 Saturation 1.7 Sigmoidal RGB 15 0.35",
},
"ndvi": {
"expression": "(b4-b1)/(b4+b1)",
"rescale": "-1,1",
"colormap_name": "viridis"
}
}
}
```
4 changes: 4 additions & 0 deletions 0.0.3/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@
"tilematrixset": {
"description": "Tile matrix set definition",
"$ref": "https://raw.githubusercontent.com/opengeospatial/2D-Tile-Matrix-Set/master/schemas/tms/2.0/json/tileMatrixSet.json"
},
"layers": {
"description": "A set of `layer` configurations",
"type": "object"
}
},
"required": ["mosaicjson", "tiles", "minzoom", "maxzoom", "bounds"]
Expand Down

0 comments on commit 0e36f25

Please sign in to comment.