--- openapi: "3.0.0" info: version: "1.0.0" title: Service WMTS description: | A RESTFul implementation of the [WMTS](https://www.ogc.org/standards/wmts) [OGC](https://www.ogc.org/) standard. For detailed information, see [WMTS OGC](https://www.ogc.org/standards/wmts) standard *NOTE: Only the RESTFul request encoding to `GetTile` and `GetCapabilities` are implemented, not the `GetLegend` and `GetFeatureInfo`. No KVP and SOAP request encoding is supported.* servers: - url: https://wmts.geo.admin.ch tags: - name: Checker description: Endpoint to check the service status - name: WMTS Capabilities description: Get WMTS Capabilities endpoints - name: Tiles description: Get tiles endpoints paths: /checker: get: summary: Liveness checker description: Route to check if the service is up. operationId: liveness-checker tags: - Checker responses: 200: description: Returning OK. content: application/json: schema: type: object properties: success: type: boolean description: Always true for 200 response. message: type: string version: type: string description: Application version string (SemVer 2.0) example: success: true message: "OK" version: "v0.2.0-beta.1" 500: $ref: "#/components/responses/internalServerError" /checker/ready: get: summary: Readiness checker description: Route to check if the service is ready to serve requests. It also checks the readiness of the WMS backend. operationId: readiness-checker tags: - Checker responses: 200: description: Returning OK. content: application/json: schema: type: object properties: success: type: boolean description: Always true for 200 response. message: type: string example: success: true message: "OK" 500: $ref: "#/components/responses/internalServerError" 502: $ref: "#/components/responses/backendWmsConnectionFailure" 503: $ref: "#/components/responses/backendWmsFailure" /1.0.0/{layer_id}/{style_name}/{time}/{srid}/{zoom}/{col}/{row}.{extension}: parameters: - name: layer_id in: path required: true description: Layer ID, see the [WMTS GetCapabilities](http://wmts.geo.admin.ch/1.0.0/WMTSCapabilities.xml) document. schema: type: string example: ch.bav.schienennetz - name: style_name in: path required: true description: Style name, only `default` is supported schema: type: string enum: - default - name: time in: path required: true description: | Date of tile generation in (ISO-8601) or logical value like `current`. A list of available values is provided in the [WMTS GetCapabilities](http://wmts.geo.admin.ch/1.0.0/WMTSCapabilities.xml) document under the `` tag. We recommend to use the value under the `` tag. Note that these values might change frequently - check for updates regularly. schema: oneOf: - type: string enum: - current - type: string format: date-time - type: string format: date - name: srid in: path required: true description: EPSG code for the projection schema: type: string enum: - 2056 - 21781 - 4326 - 3857 - name: zoom in: path required: true description: Zoom level, depends on the resolution. schema: type: integer - name: col in: path required: true description: Tile column schema: type: integer - name: row in: path required: true description: Tile row schema: type: integer - name: extension in: path required: true description: Format extension. Mostly `png`, except for some raster layer (pixelkarte and swissimage) schema: type: string enum: - png - jpeg options: summary: Options for GET Tiles description: Returns the HTTP options for GET Tiles operationId: options-tiles tags: - Tiles responses: 200: description: Returns header options headers: Cache-Control: schema: type: string example: "public, max-age=1800" Access-Control-Allow-Origin: schema: type: string example: "*" Access-Control-Allow-Methods: schema: type: string example: "GET,HEAD" Access-Control-Allow-Headers: schema: type: string example: "Content-Type, Authorization, x-requested-with, Origin, Accept" content: text/plain: example: '' 500: $ref: "#/components/responses/internalServerError" get: summary: Get Tile description: Get a tile operationId: gettile tags: - Tiles parameters: - name: mode in: query description: Operation mode schema: type: string enum: - default - debug - preview - name: nodata in: query description: | If `true` returns `OK` if the image was successfully fetched and created. Can be used for tile generation. schema: type: boolean responses: 200: description: Tile image content: image/png: schema: type: string format: binary 400: description: Invalid request content: application/json: schema: $ref: "#/components/schemas/error" example: error: code: 400 message: "Unsupported zoom level 139 for srid 2056" success: false plain/html: example: | 400 Bad Request

Bad Request

Unsupported zoom level 139 for srid 2056

500: $ref: "#/components/responses/internalServerError" 502: $ref: "#/components/responses/backendWmsConnectionFailure" 503: $ref: "#/components/responses/backendWmsFailure" /1.0.0/WMTSCapabilities.xml: get: summary: Get Capabilities - alias 1 operationId: getCapabilities1 tags: - WMTS Capabilities parameters: - $ref: "#/components/parameters/epsgQuery" - $ref: "#/components/parameters/langQuery" responses: 200: $ref: "#/components/responses/capabilities" 400: $ref: "#/components/responses/badRequestError" 500: $ref: "#/components/responses/internalServerError" /EPSG/{epsg}/1.0.0/WMTSCapabilities.xml: parameters: - $ref: "#/components/parameters/epsgPath" get: summary: Get Capabilities - alias 2 operationId: getCapabilities2 tags: - WMTS Capabilities responses: 200: $ref: "#/components/responses/capabilities" 400: $ref: "#/components/responses/badRequestError" 500: $ref: "#/components/responses/internalServerError" /EPSG/{epsg}/{lang}/1.0.0/WMTSCapabilities.xml: parameters: - $ref: "#/components/parameters/epsgPath" - $ref: "#/components/parameters/langPath" get: summary: Get Capabilities - alias 3 operationId: getCapabilities3 tags: - WMTS Capabilities responses: 200: $ref: "#/components/responses/capabilities" 400: $ref: "#/components/responses/badRequestError" 500: $ref: "#/components/responses/internalServerError" /1.0.0/WMTSCapabilities.EPSG.{epsg}.xml: parameters: - $ref: "#/components/parameters/epsgPath" get: summary: Get Capabilities - alias 3 operationId: getCapabilities tags: - WMTS Capabilities responses: 200: $ref: "#/components/responses/capabilities" 400: $ref: "#/components/responses/badRequestError" 500: $ref: "#/components/responses/internalServerError" components: schemas: error: type: object properties: success: type: boolean description: Always false in case of error. error: type: object properties: code: type: integer description: Error code. message: type: string description: Description of the error. epsg: type: integer enum: - 2056 - 21781 - 3857 - 4326 default: 21781 language: type: string enum: - de - fr - it - rm - en default: de parameters: epsgQuery: name: epsg in: query description: Returns the WMTS Capabilities for this EPSG schema: $ref: "#/components/schemas/epsg" epsgPath: name: epsg in: path required: true description: Returns the WMTS Capabilities for this EPSG schema: $ref: "#/components/schemas/epsg" langQuery: name: lang in: query description: Returns the WMTS Capabilities in the given language schema: $ref: "#/components/schemas/language" langPath: name: lang in: path required: true description: Returns the WMTS Capabilities in the given language schema: $ref: "#/components/schemas/language" responses: capabilities: description: WMTS Capabilities XML content: text/xml: schema: type: object description: See [WMTS OGC](https://www.ogc.org/standards/wmts) standard for the details of the xml. example: | WMTS BGDI - Switzerland Web Map Service Schweiz OGC WMS swisstopo Bundesamt fuer Landestopografie Landeskarte Pixelkarte Luftbilder SWISSIMAGE Grenzen swissBOUNDARIES3D Historische Karten Siegfriedatlas Dufourkarte OGC WMTS 1.0.0 Die Nutzung des Dienstes ist kostenlos unter Berücksichtigung der Bestimmungen zum Fair Use. www.geo.admin.ch/terms-of-use/ows:Fees> Bei übermässiger Nutzung von Geodiensten kann der Zugang eingeschränkt oder verweigert werden. In diesem Fällen kann swisstopo mit dem Datennutzer / der Datennutzerin einen Vertrag abschliessen (Art. 44 Abs. 2 GeoIV) www.geo.admin.ch/terms-of-use. Bundesamt für Landestopografie swisstopo webgis@swisstopo.ch +41 58 469 01 11 +41 58 469 04 59 swisstopo Bern BE 3084 Switzerland webgis@swisstopo.ch REST REST Logistikräume ALC Zuständigkeitsräume der Armeelogistikcenter (ALC). 5.140242 45.398181 11.47757 48.230651 ch.vbs.logistikraeume-armeelogistikcenter image/png Time 20141217 20141217 2056_26 2056_18 urn:ogc:def:crs:EPSG:2056 0 14285714.285714287 2420000.0 1350000.0 256 256 1 1 Basisdaten Basisdaten 23c58de608ebd19b6d5908fd82aecd00 Koordinatenreferenzsysteme Koordinatenreferenzsysteme 2 ch.swisstopo.dreiecksvermaschung ch.swisstopo.fixpunkte-agnes ch.swisstopo.geoidmodell-ch1903 ch.swisstopo.geoidmodell-etrs89 ch.swisstopo.koordinatenaenderung ch.swisstopo.transformationsgenauigkeit ch.swisstopo-vd.spannungsarme-gebiete ch.swisstopo.verschiebungsvektoren-tsp1 ch.swisstopo.verschiebungsvektoren-tsp2 badRequestError: description: 400 Bad Request. content: application/json: schema: $ref: "#/components/schemas/error" example: success: false error: code: 400 message: "Unsupported epsg 20536, must be on of [21781, 2056, 3857, 4326]" internalServerError: description: Unexpected error. content: application/json: schema: $ref: "#/components/schemas/error" example: success: false error: code: 500 message: "An internal error occurred" text/html: example: | 500 Internal Server Error

Internal Server Error

backendWmsConnectionFailure: description: Cannot connect to backend WMS content: application/json: schema: $ref: "#/components/schemas/error" example: success: false error: code: 502 message: "Cannot connect to backend WMS" text/html: example: | 502 Bad Gateway

Bad Gateway

Cannot connect to backend WMS

backendWmsFailure: description: Incomprehensible answer. WMS is probably not ready yet. content: application/json: schema: $ref: "#/components/schemas/error" example: success: false error: code: 503 message: "Incomprehensible answer. WMS is probably not ready yet." text/html: example: | 503 Service Unavailable

Service Unavailable

Incomprehensible answer. WMS is probably not ready yet.