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
@@ -28,7 +28,7 @@ This endpoint only has query parameters that modify the behavior of the request,
28
28
|**offset (optional)**| Offset for the first record (if more than 50 records). |
29
29
|**sr (optional)**| The spatial reference. Supported values: `21781` (LV03), `2056` (LV95), `4326` (WGS84), and `3857` (Web Pseudo-Mercator). Defaults to `21781`. |
30
30
|**lang (optional)**| The language. Supported values: `de`, `fr`, `it`, `rm`, `en`. Defaults to `de`. |
31
-
|**layerDefs (optional)**| Filter features with an expression. Syntax: `{ "<layerId>" : "<layerDef1>" }` where `<layerId>` must correspond to the layer specified in `layers`. |
31
+
|**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. |
32
32
|**callback (optional)**| The name of the callback function. |
33
33
34
34
### Tolerance, mapExtent and imageDisplay
@@ -42,23 +42,123 @@ The following table summarize the various combinations:
42
42
|`tolerance=0`| No buffer & no scale | No buffer, but scale |
43
43
|`tolerance>0`| Forbidden | Buffer & scale |
44
44
45
-
### layerDefs syntax
45
+
### Filtering
46
46
47
-
To list the available attributes together with their types and examples values, use the [layer attribute endpoint](/docs/get-layer-attributes).
47
+
To filter features on a set of attributes, we can use the `layerDefs` parameter on "queryable" layers.
48
48
49
-
Define the `layerDefs` parameter in JSON format like `{"<layername>":"<filter_expression>"}`.
49
+
So-called "queryable" layers are:
50
50
51
-
The filter expression can consist of a single expression of the form `<attribute><operator><value>` or several of these expressions combined with boolean operators `and` and `or`, e.g. `state='open' and startofconstruction>='2018-10'`
Regarding the format of the `layerDefs` parameter:
66
+
67
+
- Use a JSON-like format: `{"<layername>":"<filter_expression>"}`.
68
+
- The `<filter_expression` is defined in the form `<attribute><operator><value>` where
69
+
-`<attribute>` must be one of the queryable attributes listed by the [layer attribute endpoint](/docs/get-layer-attributes).
70
+
-`<operator>` must be one of the following options:
52
71
53
-
`<attribute>` must be one of the queryable attributes, the type of `<value>` must correspond the type of the queryable attribute (see above) and `<operator>` can be one of the following options:
The `identify` endpoint can be used for reverse geocoding operations.
@@ -659,3 +678,59 @@ example='{
659
678
}
660
679
'
661
680
/>
681
+
682
+
## Download as INTERLIS
683
+
684
+
For a limited set of "ÖREB" layers, features can be retrieved in the INTERLIS format (XML) with `geometryFormat=interlis`.
685
+
"ÖREB" is the German accronym for the [Cadastre of public-law restrictions on landownership](https://www.swisstopo.admin.ch/en/plr-cadastre).
686
+
687
+
:::warning
688
+
The INTERLIS format is designed for specialized applications and may not be suitable for general use.
689
+
For most users, we recommend using one of the following formats instead:
690
+
691
+
-`geometryFormat=geojson`
692
+
-`geometryFormat=esrijson`
693
+
694
+
:::
695
+
696
+
The following layers are based on the [ÖREB model V2_0](https://models.geo.admin.ch/V_D/OeREB/OeREBKRMtrsfr_V2_0.ili) and offer features in the INTERLIS format:
0 commit comments