diff --git a/.vitepress/config.mts b/.vitepress/config.mts index d8b4a13..6e9184d 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -147,13 +147,18 @@ function visualizeDataItems(): DefaultTheme.SidebarItem[] { return [ { text: "WMS", link: "/docs/wms" }, { text: "WMTS", link: "/docs/wmts" }, + { text: "XYZ", link: "/docs/xyz" }, { text: "Mapbox Vector Tiles", link: "/docs/mapbox-vector-tiles", }, { - text: "3D", - link: "/docs/3d", + text: "Terrain Service", + link: "/docs/terrain-service", + }, + { + text: "3D Tiles", + link: "/docs/3d-tiles", }, ]; } diff --git a/docs/3d-tiles.md b/docs/3d-tiles.md new file mode 100644 index 0000000..2baadce --- /dev/null +++ b/docs/3d-tiles.md @@ -0,0 +1,70 @@ +# 3D Tiles + +This service provides 3D tiles through a RESTful API, implementing the [Cesium 3D Tiles specification](https://github.com/CesiumGS/3d-tiles). + + + +Use the following parameters to define your request: + +| Parameter | Example | Description | +| --------- | -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| layerName | ch.swisstopo.swissbuildings3d.3d | The technical name of the 3D layer. Possible values are: `ch.swisstopo.swissbuildings3d.3d`, `ch.swisstopo.swisstlm3d.3d`, `ch.swisstopo.swissnames3d.3d`, `ch.swisstopo.vegetation.3d` | +| Version | v1 | API version. `v1` means tiles generated with 3D Tiles | +| Time | 20240501 | Date of tileset generation in (ISO-8601, e.g. YYYYMMDD) | +| Z | 7 | Zoom level | +| X | 54 | Tile column index | +| Y | 21 | Tile row index | + +A 3D tile request for swissBUILDINGS3D dataset: + +```http +curl -o demo.b3dm https://3d.geo.admin.ch/ch.swisstopo.swissbuildings3d.3d/v1/20240501/7/54/21.b3dm +``` + +## Metadata + +The `tileset.json` file describes the available set of tiles. +It can be used directly by [CesiumJS](https://github.com/CesiumGS/cesium). + + + +| Parameter | Example | Description | +| --------------- | -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Time (optional) | 20201203 | Date of tile generation in (ISO-8601). | +| layerName | ch.swisstopo.swissbuildings3d.3d | The technical name of the 3D layer. Possible values are: `ch.swisstopo.swissbuildings3d.3d`, `ch.swisstopo.swisstlm3d.3d`, `ch.swisstopo.swissnames3d.3d`, `ch.swisstopo.vegetation.3d` | + +A metadata request for the Vegetation dataset: + + + +## Example: Cesium + +An example Cesium application using terrain tiles, 3D buildings and WMTS. + + diff --git a/docs/3d.md b/docs/3d.md deleted file mode 100644 index 7c12fb2..0000000 --- a/docs/3d.md +++ /dev/null @@ -1,82 +0,0 @@ -# 3D - -## Terrain Service - -A RESTFul implementation of "[Cesium](http://cesiumjs.org/)" [Quantized -Mesh](https://github.com/AnalyticalGraphicsInc/quantized-mesh) terrain -service. Terrain tiles are served according to the [Tile Map Service -(TMS)](http://wiki.osgeo.org/wiki/Tile_Map_Service_Specification) layout -and global-geodetic profile. - -### URL - - - -### Metadata Service - -The layer.json file determines which -terrain tiles are available. - -- - (alway most recent terrain tiles) -- - (terrain tiles of the date 20201203) - -### Parameters - -A request is in the form: - - GET https:///ch.swisstopo.terrain.3d//