File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments