Skip to content

Commit

Permalink
Merge pull request #22 from rok4/develop
Browse files Browse the repository at this point in the history
Release 5.2.1
  • Loading branch information
Dolite authored Nov 14, 2023
2 parents b63667f + 3519d57 commit 555257b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 5.2.1

### [Changed]

* En WMS, si la requête ne précise pas de version, on met la version 1.3.0 par défaut
* En WMTS, si la requête ne précise pas de version, on met la version 1.0.0 par défaut

## 5.2.0

### [Fixed]
Expand Down
4 changes: 2 additions & 2 deletions src/UtilsWMS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ DataStream* Rok4Server::getMapParamWMS (
// VERSION
std::string version = request->getParam ( "version" );
if ( version == "" ) {
return new SERDataStream ( new ServiceException ( "",OWS_MISSING_PARAMETER_VALUE,"Parametre VERSION absent.","wms" ) );
version = "1.3.0";
}

if ( version != "1.3.0" )
Expand Down Expand Up @@ -415,7 +415,7 @@ DataStream* Rok4Server::getCapParamWMS ( Request* request, std::string& version
// VERSION
version = request->getParam ( "version" );
if ( version == "" ) {
return new SERDataStream ( new ServiceException ( "",OWS_MISSING_PARAMETER_VALUE,"Parametre VERSION absent.","wms" ) );
version = "1.3.0";
}

if ( version != "1.3.0" )
Expand Down
4 changes: 2 additions & 2 deletions src/UtilsWMTS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ DataSource* Rok4Server::getTileParamWMTS ( Request* request, Layer*& layer, Tile
// VERSION
std::string version = request->getParam ( "version" );
if ( version == "" ) {
return new SERDataSource ( new ServiceException ( "",OWS_MISSING_PARAMETER_VALUE,"Parametre VERSION absent.","wmts" ) );
version = "1.0.0";
}

if ( version != "1.0.0" )
Expand Down Expand Up @@ -630,7 +630,7 @@ DataStream* Rok4Server::getCapParamWMTS ( Request* request, std::string& version

version = request->getParam ( "version" );
if ( version == "" ) {
return new SERDataStream ( new ServiceException ( "",OWS_MISSING_PARAMETER_VALUE,"Parametre VERSION absent.","wmts" ) );
version = "1.0.0";
}

if ( version != "1.0.0" )
Expand Down

0 comments on commit 555257b

Please sign in to comment.