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
|**layerBodId (required)**| The technical name or the layer ID. |
18
+
|**attributeName (required)**| The name of the attribute for which to retrieve values. |
19
+
20
+
## Response Details
21
+
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.
23
+
24
+
Here is a description of the data contained in the response.
|`scaleLimit`| The scale at which the layer is valid. |
39
-
|`inspireUpperAbstract`| The abstract of the [INSPIRE](https://www.geo.admin.ch/en/geo-information-switzerland/geodata-index-inspire.html) category (first level). |
40
-
|`inspireName`| The name of the [INSPIRE](https://www.geo.admin.ch/en/geo-information-switzerland/geodata-index-inspire.html) category. |
39
+
|`inspireUpperAbstract`| The abstract of the [INSPIRE](https://www.geo.admin.ch/en/inspire-services) category (first level). |
40
+
|`inspireName`| The name of the [INSPIRE](https://www.geo.admin.ch/en/inspire-services) category. |
41
41
|`urlDetails`| Link to the official details page. |
42
42
|`bundCollectionNumber`| The collection number. |
43
43
|`dataOwner`| The data owner. |
44
-
|`inspireAbstract`| The abstract of the [INSPIRE](https://www.geo.admin.ch/en/geo-information-switzerland/geodata-index-inspire.html) category the layer belongs to. |
44
+
|`inspireAbstract`| The abstract of the [INSPIRE](https://www.geo.admin.ch/en/inspire-services) category the layer belongs to. |
45
45
|`abstract`| The layer abstract. |
46
46
|`wmsContactAbbreviation`| The abbreviation contact for the WMS resource. |
47
47
|`downloadUrl`| The link where the data can be downloaded. |
48
48
|`maps`| The projects in which this layer is accessible. |
49
49
|`wmsContactName`| The contact name for the WMS resource. |
50
50
|`dataStatus`| The date of the latest data update. |
51
51
|`bundCollectionName`| The collection name. |
52
-
|`inspireUpperName`| The name of the [INSPIRE](https://www.geo.admin.ch/en/geo-information-switzerland/geodata-index-inspire.html) category (first level). |
52
+
|`inspireUpperName`| The name of the [INSPIRE](https://www.geo.admin.ch/en/inspire-services) category (first level). |
53
53
|`urlApplication`| The application where this layer is published. |
54
54
|`tileInfo`| WMTS general information in JSON format. Note that this section is always identical and is not tied to a particular "map" like in ESRI specifications. |
Outside of Switzerland a 10m grid elevation model is used. It is a combined digital elevation model consisting of elevation models from mapping agencies of France, Italy, Austria, Bavaria and Baden-Württemberg and derived with a resolution of 10m. The extend
No more than 50 features can be retrieved per request.
8
+
No more than 200 features can be retrieved per request.
9
9
:::
10
10
11
11
## Request Details
@@ -26,6 +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 retrieve per request (default limit=50, max limit=200) |
29
30
|**sr (optional)**| The spatial reference. Supported values: `21781` (LV03), `2056` (LV95), `4326` (WGS84), and `3857` (Web Pseudo-Mercator). Defaults to `21781`. |
30
31
|**lang (optional)**| The language. Supported values: `de`, `fr`, `it`, `rm`, `en`. Defaults to `de`. |
31
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. |
|`id`| This is an internal value and therefore shouldn't be used. |
82
-
|`weight`| The `weight`is dynamically computed according to the `searchText` that is provided. It informs the user about how close an entry is to the provided `searchText`. |
82
+
|`weight`| The `weight`attribute represents the similarity between the search query and the index. **For location search**: `weight = 100` typically indicates exact matches, `weight < 100` indicates partial/wildcard matches, `weight > 1000` indicates fuzzy search results. Since the search engine combines multiple ranking methods, weight values should be used as general guidelines only. **Important**: Absolute weight values may change without backward compatibility. |
Copy file name to clipboardExpand all lines: docs/wms.md
+28-4Lines changed: 28 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,15 +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
+
## 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.
19
+
20
+
The supported values are: `de` (German), `fr` (French), `it` (Italian), `rm` (Rumantsch), `en` (English). Defaults to `de` if not specified
21
+
22
+
::: info
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 information about the service, along with layer description, both in German and French.
30
+
The GetCapabilities document provides comprehensive information about the WMS service, including detailed layer descriptions available in all four Swiss national languages and English.
0 commit comments