Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
## 6.1.4

### [Fixed]

* `WMS`
* Correction de l'attribution dans les capacités : contenu du logo et ordre des balises
* Correction du géoréférencement dans les réponses GeoTIFF

* `TMS`
* Correction de l'attribution dans les capacités : contenu du logo
* Ajout du header `Content-Encoding: defalte` pour les tuiles bil compressées

* `WMTS`
* Correction des balises de métadonnées dans les capacités
* Ajout du header `Content-Encoding: defalte` pour les tuiles bil compressées

## 6.1.3

### [Fixed]
Expand Down
9 changes: 5 additions & 4 deletions src/configurations/Attribution.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,14 @@ class Attribution : public ResourceLocator {
*/
void add_node_tms(ptree& parent) {
ptree& node = parent.add("Attribution", "");
node.add("<xmlattr>.href", href);
node.add("Title", title);

if (logo != NULL) {
node.add("Logo.<xmlattr>.width", width);
node.add("Logo.<xmlattr>.height", height);
node.add("Logo.<xmlattr>.href", href);
node.add("Logo.<xmlattr>.mime-type", format);
node.add("Logo.<xmlattr>.href", logo->get_href());
node.add("Logo.<xmlattr>.mime-type", logo->get_format());
}
}

Expand All @@ -162,9 +163,9 @@ class Attribution : public ResourceLocator {
if (logo != NULL) {
node.add("LogoURL.<xmlattr>.width", width);
node.add("LogoURL.<xmlattr>.height", height);
node.add("LogoURL.OnlineResource.<xmlattr>.xlink:href", href);
node.add("LogoURL.Format", logo->get_format());
node.add("LogoURL.OnlineResource.<xmlattr>.xlink:href", logo->get_href());
node.add("LogoURL.OnlineResource.<xmlattr>.xlink:type", "simple");
node.add("LogoURL.Format", format);
}
}

Expand Down
7 changes: 2 additions & 5 deletions src/configurations/Metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,8 @@ class Metadata : public ResourceLocator {
* \param[in] parent Node to whom add the metadata node
*/
void add_node_wmts(ptree& parent) {
ptree& node = parent.add("MetadataURL", "");
node.add("<xmlattr>.type", type);
node.add("Format", format);
node.add("OnlineResource.<xmlattr>.xlink:href", href);
node.add("OnlineResource.<xmlattr>.xlink:type", "simple");
ptree& node = parent.add("ows:Metadata", "");
node.add("<xmlattr>.xlink:href", href);
}

json11::Json to_json_tiles(std::string title, std::string rel) const {
Expand Down
6 changes: 5 additions & 1 deletion src/services/Router.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ void print_fcgi_error ( int error ) {
*/
int sendresponse ( DataStream* stream, Request* request ) {


// Creation de l'en-tete
std::string statusHeader= get_status_header ( stream->get_http_status() );
FCGX_PutStr ( statusHeader.data(),statusHeader.size(),request->fcgx_request->out );
Expand All @@ -182,7 +183,10 @@ int sendresponse ( DataStream* stream, Request* request ) {
FCGX_PutStr ( "Content-Type: ",14,request->fcgx_request->out );
FCGX_PutStr ( stream->get_type().c_str(), strlen ( stream->get_type().c_str() ),request->fcgx_request->out );
}

if (stream->get_encoding() != "" ){
FCGX_PutStr ( "\r\nContent-Encoding: ",20,request->fcgx_request->out );
FCGX_PutStr ( stream->get_encoding().c_str(), strlen ( stream->get_encoding().c_str() ),request->fcgx_request->out );
}
if ( stream->get_length() != 0 ) {
std::stringstream ss;
ss << stream->get_length();
Expand Down
1 change: 1 addition & 0 deletions src/services/wms/getmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ DataStream* WmsService::get_map ( Request* req, Rok4Server* serv ) {
final_image = images.at(0);
}

final_image->set_bbox(bbox);
final_image->set_crs(crs);

if (format == "image/png" && sample_format == SampleFormat::UINT8) {
Expand Down