Skip to content

Commit dac689b

Browse files
committed
fix(ogc) : IGNGPF-5480 Mise en place de valeur limite pour la boundingbox en wms-r
1 parent 060877a commit dac689b

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ Le format est basé sur [Keep a Changelog](https://keepachangelog.com/) et ce pr
66

77
## [Unreleased]
88

9+
### Fixed
10+
11+
- `Boundingbox` : Mise en place de valeur maximale et minimale pour les bbox en wms-r.
12+
913
## [3.0.0] - 2026-03-12
1014

1115
### Added

‎include/rok4/utils/BoundingBox.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -409,10 +409,10 @@ class BoundingBox {
409409

410410
if (geographical) {
411411
ptree& node = parent.add("EX_GeographicBoundingBox", "");
412-
node.add("westBoundLongitude", xmin);
413-
node.add("eastBoundLongitude", xmax);
414-
node.add("southBoundLatitude", ymin);
415-
node.add("northBoundLatitude", ymax);
412+
node.add("westBoundLongitude", std::max(xmin,-180.0));
413+
node.add("eastBoundLongitude", std::min(xmax,180.0));
414+
node.add("southBoundLatitude", std::max(ymin,-90.0));
415+
node.add("northBoundLatitude", std::min(ymax,90.0));
416416
} else {
417417
ptree& node = parent.add("BoundingBox", "");
418418
node.add("<xmlattr>.CRS", crs);

0 commit comments

Comments
 (0)