Geometries for spatial restrictions

Geometries for spatial restrictions are defined in GeoJSON files.

Requirements

GeoJSON files used for spatial restrictions must meet the following requirements:

  • The file must be a valid GeoJSON file.

  • The file may only contain geometries of type Polygon or MultiPolygon.

  • Geometries can be specified according to the GeoJSON specification as part of a FeatureCollection, a Feature, or as a single geometry object.

  • The file must not contain any link properties. Responses from OGC API feature services may contain such properties. In this case, remove the link properties from the GeoJSON file.

  • The geometries must be in the WGS84 reference system (EPSG:4326).

Example

Example of a valid GeoJSON file that can be used as a spatial restriction:

policies/nrw.geojson
{
  "type": "Polygon",
  "coordinates": [
    [
      [ 5.86725, 50.32376 ],
      [ 9.46245, 50.32376 ],
      [ 9.46245, 52.52857 ],
      [ 5.86725, 52.52857 ],
      [ 5.86725, 50.32376 ]
    ]
  ]
}