Skip to content

Commit 9cd8f3c

Browse files
authored
Merge pull request #52 from geoadmin/ltrea-feedback-in-3D
PB-1969 Feedback to 3D from ltrea #patch
2 parents 28d76bc + a33e53f commit 9cd8f3c

2 files changed

Lines changed: 18 additions & 15 deletions

File tree

docs/3d-tiles.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ Use the following parameters to define your request:
1010
| --------- | -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1111
| 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` |
1212
| Version | v1 | API version. `v1` means tiles generated with 3D Tiles |
13-
| Time | 20240501 | Date of tileset generation in (ISO-8601, e.g. YYYYMMDD) |
13+
| Time (optional) | 20250501 | Date of tileset generation in ISO-8601 (YYYYMMDD). If you omit this parameter, the most recent tile is returned. |
1414
| Z | 7 | Zoom level |
1515
| X | 54 | Tile column index |
1616
| Y | 21 | Tile row index |
1717

1818
A 3D tile request for swissBUILDINGS3D dataset:
1919

2020
```http
21-
curl -o demo.b3dm https://3d.geo.admin.ch/ch.swisstopo.swissbuildings3d.3d/v1/20240501/7/54/21.b3dm
21+
curl -o demo.b3dm https://3d.geo.admin.ch/ch.swisstopo.swissbuildings3d.3d/v1/20250501/11/799/503.b3dm
2222
```
2323

2424
## Metadata
@@ -28,9 +28,10 @@ It can be used directly by [CesiumJS](https://github.com/CesiumGS/cesium).
2828

2929
<ApiCodeBlock url="https://3d.geo.admin.ch/<LayerName>/<Version>/<Time>/tileset.json" method="GET" />
3030

31+
3132
| Parameter | Example | Description |
3233
| --------------- | -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
33-
| Time (optional) | 20201203 | Date of tile generation in (ISO-8601). |
34+
| Time (optional) | 20250728 | Date of tile generation in ISO-8601 (YYYYMMDD). If you omit this parameter, the most recent tile is returned. |
3435
| 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` |
3536

3637
A metadata request for the Vegetation dataset:

docs/terrain-service.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ Tiles are organized and served following the [Tile Map Service (TMS) specificati
77

88
Use the following parameters to define your request:
99

10-
| Parameter | Example | Description |
11-
| ---------- | --------------- | -------------------------------------------------- |
12-
| ServerName | 3d.geo.admin.ch | |
13-
| Version | v1 | v1 means terrain tiles generated with cesium tiles |
14-
| Time | 20201203 | Date of tile generation in (ISO-8601). |
15-
| Zoom | 12 | Zoom level |
16-
| X | 4309 | The longitude index |
17-
| Y | 3111 | The latitude index |
10+
| Parameter | Example | Description |
11+
| ----------------| --------------- | -------------------------------------------------- |
12+
| ServerName | 3d.geo.admin.ch | |
13+
| Version | v1 | v1 means terrain tiles generated with cesium tiles |
14+
| Time (optional) | 20250101 | Date of tile generation in ISO-8601 (YYYYMMDD). If you omit this parameter, the most recent tile is returned. |
15+
| Zoom | 12 | Zoom level |
16+
| X | 4309 | The longitude index |
17+
| Y | 3111 | The latitude index |
1818

1919
An example of a terrain tile request:
2020

2121
```http
22-
curl -o demo.terrain https://3d.geo.admin.ch/ch.swisstopo.terrain.3d/v1/20201203/7/136/98.terrain?v=3924.0.0
22+
curl -o demo.terrain https://3d.geo.admin.ch/ch.swisstopo.terrain.3d/v1/20250101/11/2130/1550.terrain?v=1.43646.0
2323
```
2424

2525
## Metadata
@@ -28,14 +28,16 @@ The `layer.json` file provides metadata that describes the availability and stru
2828

2929
<ApiCodeBlock url="https://3d.geo.admin.ch/ch.swisstopo.terrain.3d/v1/<Time>/layer.json" method="GET" />
3030

31+
32+
3133
| Parameter | Example | Description |
3234
| --------------- | -------- | ------------------------------------------------------------------------------------------------------------------------- |
33-
| Time (optional) | 20201203 | Date of tile generation in (ISO-8601). If no date is provided, it returns the metadata for the most recent terrain tiles. |
35+
| Time (optional) | 20250101 | Date of tile generation in ISO-8601 (YYYYMMDD). If you omit this parameter, the most recent metadata is returned. |
3436

35-
Example of a metadata request for the date `20201203`:
37+
Example of a metadata request for the date `20250101`:
3638

3739
<ExampleCodeBlock
38-
request="curl --compressed https://3d.geo.admin.ch/ch.swisstopo.terrain.3d/v1/20201203/layer.json"
40+
request="curl --compressed https://3d.geo.admin.ch/ch.swisstopo.terrain.3d/v1/20250101/layer.json"
3941
example='{
4042
"attribution": "Put something there",
4143
"available": [...],

0 commit comments

Comments
 (0)