From 572892a0242cd3e175b9a5a458171e5f243999d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Satabin?= Date: Fri, 16 Oct 2026 18:58:09 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20en=20conformit=C3=A9=20OGC=20API=20Tiles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### Fixed - API Tiles : les liens vers les tuiles sont avec ref = item et on ajoute un lien vers le TMS --- CHANGELOG.md | 5 +++++ src/configurations/Layer.cpp | 11 +++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 627292e..4f17a46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ Le format est basé sur [Keep a Changelog](https://keepachangelog.com/) et ce pr ## [Unreleased] +## [7.1.1] - 2026-10-16 + +### Fixed +- API Tiles : les liens vers les tuiles sont avec ref = item et on ajoute un lien vers le TMS + ## [7.1.0] - 2026-10-16 ### Changed diff --git a/src/configurations/Layer.cpp b/src/configurations/Layer.cpp index 34dde80..91e13ee 100644 --- a/src/configurations/Layer.cpp +++ b/src/configurations/Layer.cpp @@ -1089,6 +1089,13 @@ json11::Json Layer::to_json_tileset(OgcApiService* service, TileMatrixSetInfos* std::vector links; + links.push_back(json11::Json::object { + { "href", service->get_endpoint_uri() + "/tileMatrixSets/" + tmsi->tms->get_id() + "?f=json"}, + { "rel", "http://www.opengis.net/def/rel/ogc/1.0/tiling-scheme"}, + { "type", "application/json"}, + { "title", tmsi->tms->get_id() + " definition as application/json"} + }); + if (raster) { // Interrogation de donnée raster res["dataType"] = "map"; @@ -1102,7 +1109,7 @@ json11::Json Layer::to_json_tileset(OgcApiService* service, TileMatrixSetInfos* for(auto const& s: available_styles) { links.push_back(json11::Json::object { { "href", service->get_endpoint_uri() + "/collections/" + id + "/styles/" + s->get_identifier() + "/map/tiles/" + tmsi->tms->get_id() + "/{tileMatrix}/{tileRow}/{tileCol}?f=" + Rok4Format::to_ogcapi_format(pyramid->get_format())}, - { "rel", "tiles"}, + { "rel", "item"}, { "type", Rok4Format::to_mime_type(pyramid->get_format())}, { "title", id + " as raster tile with style " + s->get_identifier()}, { "templated", true} @@ -1121,7 +1128,7 @@ json11::Json Layer::to_json_tileset(OgcApiService* service, TileMatrixSetInfos* // Lien vers la tuile links.push_back(json11::Json::object { { "href", service->get_endpoint_uri() + "/collections/" + id + "/tiles/" + tmsi->tms->get_id() + "/{tileMatrix}/{tileRow}/{tileCol}?f=" + Rok4Format::to_ogcapi_format(pyramid->get_format())}, - { "rel", "tiles"}, + { "rel", "item"}, { "type", Rok4Format::to_mime_type(pyramid->get_format())}, { "title", id + " as vector tile"}, { "templated", true}