From 65514159320e9e395e764d3b7528a184eabf6f47 Mon Sep 17 00:00:00 2001 From: Pedro Soares Date: Thu, 7 Aug 2025 17:28:10 +0200 Subject: [PATCH 1/6] Format and organize pages in Visualize Data section --- .vitepress/config.mts | 9 +- docs/3d-tiles.md | 82 +++++ docs/3d.md | 82 ----- docs/mapbox-vector-tiles.md | 189 +++++++--- docs/terrain-service.md | 67 ++++ docs/wms.md | 123 ++++++- docs/wmts.md | 701 +++++++----------------------------- docs/xyz.md | 68 ++++ 8 files changed, 586 insertions(+), 735 deletions(-) create mode 100644 docs/3d-tiles.md delete mode 100644 docs/3d.md create mode 100644 docs/terrain-service.md create mode 100644 docs/xyz.md 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..4b48fee --- /dev/null +++ b/docs/3d-tiles.md @@ -0,0 +1,82 @@ +# 3D Tiles + +A RESTFul implementation of [Cesium 3D Tiles specification](https://github.com/CesiumGS/3d-tiles). + + + +## Request Details + +### Path Parameters + +| Parameter | Example | Description | +| --------- | -------------------------------- | ------------------------------------------------------- | +| layerName | ch.swisstopo.swissbuildings3d.3d | The technical name of the 3D layer (see below) | +| 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 | + +**Available values for ``:** + +- `ch.swisstopo.swissbuildings3d.3d` +- `ch.swisstopo.swisstlm3d.3d` +- `ch.swisstopo.swissnames3d.3d` +- `ch.swisstopo.vegetation.3d` + +### Metadata Service + +The `tileset.json` file describes the available set of tiles. +In order to use this service you can use [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 (see below) | + +## Examples + +A 3D tile + +```http +https://3d.geo.admin.ch/ch.swisstopo.swissbuildings3d.3d/v1/20240501/7/54/21.b3dm +``` + + + +## Examples: Cesium + +Example Geoadmin Terrain, Buildings and WMTS implementation using Cesium. + + 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//