Skip to content

Commit 522f8eb

Browse files
committed
PB-1969: feedback ltstx
1 parent c1a0117 commit 522f8eb

File tree

5 files changed

+27
-14
lines changed

5 files changed

+27
-14
lines changed

docs/get-layer-attribute-values.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Get Layer Attribute Values
22

3-
The attribute values endpoint provides a preview of possible values for a specific attribute (field) of a given vector layer. This is useful for building filter UIs, dropdowns, or for understanding the data distribution in a layer. This endpoint can be used to get more detailed information about possible attribute values.
3+
The attribute values endpoint provides a preview of possible values for a specific attribute (field) of a given vector layer.
4+
This is useful for building filter UIs, dropdowns, or for understanding the data distribution in a layer.
45

56
<ApiCodeBlock url="https://api3.geo.admin.ch/rest/services/api/MapServer/{layerBodId}/attributes/{attributeName}" method="GET" />
67

@@ -18,7 +19,7 @@ This endpoint only has **Path Parameters** which are mandatory.
1819

1920
## Response Details
2021

21-
The endpoint returns a **JSON** with information about the attribute values for the specified layer and attribute. The response includes an array of values. For attributes of type `DATE`, `INTEGER`, `NUMERIC` the endpoint returns the minimum and maximum values as a two-element array. For other attribute types the endpoint returns up to 50 distinct values, sorted.
22+
The endpoint returns a **JSON** with information about the attribute values for the specified layer and attribute. The response includes an array of values. For attributes of type `DATE`, `INTEGER`, `NUMERIC` the endpoint returns the minimum and maximum values as a two-element array. For other attribute types the endpoint returns up to 50 distinct values, sorted alphabetically.
2223

2324
Here is a description of the data contained in the response.
2425

@@ -90,7 +91,7 @@ example='{
9091

9192
<br>
9293

93-
Get the min and max value for the `garea` attribute from layer `ch.bfs.gebaeude_wohnungs_register` with descending order:
94+
Get the min and max value for the `garea` attribute from layer `ch.bfs.gebaeude_wohnungs_register`:
9495

9596
<ExampleCodeBlock
9697
request='curl "https://api3.geo.admin.ch/rest/services/api/MapServer/ch.bfs.gebaeude_wohnungs_register/attributes/garea"'

docs/identify-features.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This endpoint only has query parameters that modify the behavior of the request,
2626
| **returnGeometry (optional)** | This parameter defines whether the geometry is returned or not. Defaults to `true`. |
2727
| **geometryFormat (optional)** | Returned geometry format. Defaults to ESRI geometry format. Supported values are: `esrijson` or `geojson`. |
2828
| **offset (optional)** | Offset for the first record (if more than 50 records). |
29-
| **limit (optional)** | The maximum number of results to retrive per request (default limit=50, max limit=200) |
29+
| **limit (optional)** | The maximum number of results to retrieve per request (default limit=50, max limit=200) |
3030
| **sr (optional)** | The spatial reference. Supported values: `21781` (LV03), `2056` (LV95), `4326` (WGS84), and `3857` (Web Pseudo-Mercator). Defaults to `21781`. |
3131
| **lang (optional)** | The language. Supported values: `de`, `fr`, `it`, `rm`, `en`. Defaults to `de`. |
3232
| **layerDefs (optional)** | Filter features with an expression. Syntax: `{ "<layerId>" : "<layerDef1>" }` where `<layerId>` must correspond to the layer specified in `layers`. See below for more details. |

docs/vector-tiles.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,7 @@ curl -o demo.pbf https://vectortiles.geo.admin.ch/tiles/ch.swisstopo.relief.vt/v
6969
## GetTileSets
7070
MBTiles are used for storing tiled map data in SQLite databases for immediate or offline usage and for efficient transfer.
7171

72-
::: warning
73-
The file that is being downloaded in the example below is approximately **900MB** in size.
74-
:::
75-
76-
A MBTileSet request is in the following form:
72+
TileSet request is in the following form:
7773

7874
<ApiCodeBlock url="https://vectortiles.geo.admin.ch/tiles/{layerName}/{version}/{layerName}.mbtiles" method="GET" />
7975

@@ -84,6 +80,10 @@ A MBTileSet request is in the following form:
8480

8581
A GetTileSet request for a `.mbtiles` file in the Base Map dataset:
8682

83+
::: warning
84+
The file that is being downloaded in the example below is approximately **900MB** in size.
85+
:::
86+
8787
```http
8888
curl -o demo.mbtiles https://vectortiles.geo.admin.ch/tiles/ch.swisstopo.base.vt/v1.0.0/ch.swisstopo.base.vt.mbtiles
8989
```

docs/wms.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,39 @@ outline: [2, 3]
77
Federal offices make part of their data available via the WMS - Federal Spatial Data Infrastructure (FSDI) service.
88
The data layers currently available in the WMS-FSDI correspond, with a few exceptions, to the geodata that are presented in [map.geo.admin.ch](https://map.geo.admin.ch).
99

10-
## GetCapabilities
10+
## Set the Language
11+
12+
The default response language of all WMS endpoints is German (`de`).
13+
There are two ways to set a different language:
14+
15+
1. As a path parameter like in `https://wms.geo.admin.ch/{Lang}/?SERVICE=WMS&...`
16+
2. As a query parameter `Lang` like in `https://wms.geo.admin.ch/?SERVICE=WMS&...&Lang=fr&...`
17+
18+
When both are present, the path parameter takes precedence over the query string parameter.
1119

12-
The GetCapabilities document provides comprehensive information about the WMS service, including detailed layer descriptions available in all four Swiss national languages and English. The language can be specified using the `LANG` parameter, which can be provided either as a path parameter or as a query string parameter. When both are present, the path parameter takes precedence over the query string parameter.
20+
The supported values are: `de` (German), `fr` (French), `it` (Italian), `rm` (Rumantsch), `en` (English). Defaults to `de` if not specified
1321

1422
::: info
1523
The language parameter (both path and query string variants) is supported by all WMS requests: `GetCapabilities`, `GetMap`, `GetFeatureInfo`, and `GetLegendGraphic`. This allows you to receive localized responses and layer information in your preferred language.
1624
:::
1725

1826
<ApiCodeBlock url="https://wms.geo.admin.ch/{language}/?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities&LANG=<Lang>" method="GET" />
1927

28+
## GetCapabilities
29+
30+
The GetCapabilities document provides comprehensive information about the WMS service, including detailed layer descriptions available in all four Swiss national languages and English.
31+
2032
### Path Parameters
2133

2234
| Parameter | Description |
2335
| ------------------------- | ----------------------------------- |
24-
| **Lang** *(optional)* | Specifies the language for the service response. Supported values: `de` (German), `fr` (French), `it` (Italian), `rm` (Rumantsch), `en` (English). Defaults to `de` if not specified. |
36+
| **Lang** *(optional)* | Specifies the language for the service response. |
2537

2638
### Query Parameters
2739

2840
| Parameter | Description |
2941
| --------------- | ------------------------------------------------------------- |
30-
| **Lang** *(optional)* | Specifies the language for the service response. Supported values: `de` (German), `fr` (French), `it` (Italian), `rm` (Rumantsch), `en` (English). Defaults to `de` if not specified. |
42+
| **Lang** *(optional)* | Specifies the language for the service response. |
3143

3244
### Supported Projections
3345

docs/xyz.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Use the following parameters to define your request:
2828
| z | 10 | Zoom level |
2929
| x | 266 | Tile column (X coordinate in the tile grid) |
3030
| y | 180 | Tile row (Y coordinate in the tile grid) |
31-
| FormatExtension | png | The image format of the returned tiles. Most layers are provided as "png", only a few exceptions like the raster layers `ch.swisstopo.pixelkarte-*` and `ch.swisstopo.swissimage*` use FormatExtension "jpeg". See the `<Format>` tag in the [GetCapabilities document of the WMTS](//wmts.geo.admin.ch/EPSG/3857/1.0.0/WMTSCapabilities.xml). |
31+
| FormatExtension | png | The image format of the returned tiles. Most layers are provided as "png", only a few exceptions like the raster layers `ch.swisstopo.pixelkarte-*` and `ch.swisstopo.swissimage*` use FormatExtension "jpeg". See the `<Format>` tag in the [GetCapabilities document of the WMTS](https://wmts.geo.admin.ch/EPSG/3857/1.0.0/WMTSCapabilities.xml). |
3232

3333
::: warning
3434

0 commit comments

Comments
 (0)