You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/get-layer-attribute-values.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
# Get Layer Attribute Values
2
2
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.
@@ -18,7 +19,7 @@ This endpoint only has **Path Parameters** which are mandatory.
18
19
19
20
## Response Details
20
21
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.
22
23
23
24
Here is a description of the data contained in the response.
24
25
@@ -90,7 +91,7 @@ example='{
90
91
91
92
<br>
92
93
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`:
Copy file name to clipboardExpand all lines: docs/identify-features.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ This endpoint only has query parameters that modify the behavior of the request,
26
26
|**returnGeometry (optional)**| This parameter defines whether the geometry is returned or not. Defaults to `true`. |
27
27
|**geometryFormat (optional)**| Returned geometry format. Defaults to ESRI geometry format. Supported values are: `esrijson` or `geojson`. |
28
28
|**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) |
30
30
|**sr (optional)**| The spatial reference. Supported values: `21781` (LV03), `2056` (LV95), `4326` (WGS84), and `3857` (Web Pseudo-Mercator). Defaults to `21781`. |
31
31
|**lang (optional)**| The language. Supported values: `de`, `fr`, `it`, `rm`, `en`. Defaults to `de`. |
32
32
|**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. |
Copy file name to clipboardExpand all lines: docs/wms.md
+16-4Lines changed: 16 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,27 +7,39 @@ outline: [2, 3]
7
7
Federal offices make part of their data available via the WMS - Federal Spatial Data Infrastructure (FSDI) service.
8
8
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).
9
9
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.
11
19
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
13
21
14
22
::: info
15
23
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.
The GetCapabilities document provides comprehensive information about the WMS service, including detailed layer descriptions available in all four Swiss national languages and English.
|**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. |
|**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. |
Copy file name to clipboardExpand all lines: docs/xyz.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ Use the following parameters to define your request:
28
28
| z | 10 | Zoom level |
29
29
| x | 266 | Tile column (X coordinate in the tile grid) |
30
30
| 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). |
0 commit comments