diff --git a/CHANGELOG.md b/CHANGELOG.md index 515fdb2..912e0b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ Le format est basé sur [Keep a Changelog](https://keepachangelog.com/) et ce pr - Compilation des artefacts sous ubuntu 24.04 (compatible debian 13 / trixie) +### Fixed + +- `Boundingbox` : Mise en place de valeur maximale et minimale pour les bbox en wms-r. + ## [3.0.0] - 2026-03-12 ### Added diff --git a/include/rok4/utils/BoundingBox.h b/include/rok4/utils/BoundingBox.h index 435900e..df03d87 100644 --- a/include/rok4/utils/BoundingBox.h +++ b/include/rok4/utils/BoundingBox.h @@ -409,10 +409,10 @@ class BoundingBox { if (geographical) { ptree& node = parent.add("EX_GeographicBoundingBox", ""); - node.add("westBoundLongitude", xmin); - node.add("eastBoundLongitude", xmax); - node.add("southBoundLatitude", ymin); - node.add("northBoundLatitude", ymax); + node.add("westBoundLongitude", std::max(xmin,-180.0)); + node.add("eastBoundLongitude", std::min(xmax,180.0)); + node.add("southBoundLatitude", std::max(ymin,-90.0)); + node.add("northBoundLatitude", std::min(ymax,90.0)); } else { ptree& node = parent.add("BoundingBox", ""); node.add(".CRS", crs);