Skip to content
Permalink
Browse files

[BUGFIX] QgsWmsProvider::layerMetadata(): re-add HTML content that ha…

…d been accidentaly dropped
  • Loading branch information
rouault authored and nyalldawson committed May 29, 2020
1 parent 6373283 commit e359afc624228b5db4ff7bf9c8b992b4b9f12c7c
Showing with 61 additions and 60 deletions.
  1. +61 −60 src/providers/wms/qgswmsprovider.cpp
@@ -1748,66 +1748,67 @@ QString QgsWmsProvider::layerMetadata( QgsWmsLayerProperty &layer )
// Layer Title
QStringLiteral( "<tr><td>" ) %
tr( "Title" ) %
QStringLiteral( "</td>" ) %
QStringLiteral( "<td>" ) %
layer.title;
QStringLiteral( "</td></tr>" ) %

// Layer Abstract
QStringLiteral( "<tr><td>" ) %
tr( "Abstract" ) %
QStringLiteral( "</td>" ) %
QStringLiteral( "<td>" ) %
layer.abstract;
QStringLiteral( "</td></tr>" ) %

// Layer Queryability
QStringLiteral( "<tr><td>" ) %
tr( "Can Identify" ) %
QStringLiteral( "</td>" ) %
QStringLiteral( "<td>" ) %
( layer.queryable ? tr( "Yes" ) : tr( "No" ) ) %
QStringLiteral( "</td></tr>" ) %

// Layer Opacity
QStringLiteral( "<tr><td>" ) %
tr( "Can be Transparent" ) %
QStringLiteral( "</td>" ) %
QStringLiteral( "<td>" ) %
( layer.opaque ? tr( "No" ) : tr( "Yes" ) ) %
QStringLiteral( "</td></tr>" ) %

// Layer Subsetability
QStringLiteral( "<tr><td>" ) %
tr( "Can Zoom In" ) %
QStringLiteral( "</td>" ) %
QStringLiteral( "<td>" ) %
( layer.noSubsets ? tr( "No" ) : tr( "Yes" ) ) %
QStringLiteral( "</td></tr>" ) %

// Layer Server Cascade Count
QStringLiteral( "<tr><td>" ) %
tr( "Cascade Count" ) %
QStringLiteral( "</td>" ) %
QStringLiteral( "<td>" ) %
QString::number( layer.cascaded );
QStringLiteral( "</td></tr>" ) %

// Layer Fixed Width
QStringLiteral( "<tr><td>" ) %
tr( "Fixed Width" ) %
QStringLiteral( "</td>" ) %
QStringLiteral( "<td>" ) %
QString::number( layer.fixedWidth );
QStringLiteral( "</td></tr>" ) %

// Layer Fixed Height
QStringLiteral( "<tr><td>" ) %
tr( "Fixed Height" ) %
QStringLiteral( "</td>" ) %
QStringLiteral( "<td>" ) %
QString::number( layer.fixedHeight );
QStringLiteral( "</td></tr>" );
QStringLiteral( "</td>"
"<td>" ) %
layer.title %
QStringLiteral( "</td></tr>"

// Layer Abstract
"<tr><td>" ) %
tr( "Abstract" ) %
QStringLiteral( "</td>"
"<td>" ) %
layer.abstract %
QStringLiteral( "</td></tr>"

// Layer Queryability
"<tr><td>" ) %
tr( "Can Identify" ) %
QStringLiteral( "</td>"
"<td>" ) %
( layer.queryable ? tr( "Yes" ) : tr( "No" ) ) %
QStringLiteral( "</td></tr>"

// Layer Opacity
"<tr><td>" ) %
tr( "Can be Transparent" ) %
QStringLiteral( "</td>"
"<td>" ) %
( layer.opaque ? tr( "No" ) : tr( "Yes" ) ) %
QStringLiteral( "</td></tr>"

// Layer Subsetability
"<tr><td>" ) %
tr( "Can Zoom In" ) %
QStringLiteral( "</td>"
"<td>" ) %
( layer.noSubsets ? tr( "No" ) : tr( "Yes" ) ) %
QStringLiteral( "</td></tr>"

// Layer Server Cascade Count
"<tr><td>" ) %
tr( "Cascade Count" ) %
QStringLiteral( "</td>"
"<td>" ) %
QString::number( layer.cascaded ) %
QStringLiteral( "</td></tr>"

// Layer Fixed Width
"<tr><td>" ) %
tr( "Fixed Width" ) %
QStringLiteral( "</td>"
"<td>" ) %
QString::number( layer.fixedWidth ) %
QStringLiteral( "</td></tr>"

// Layer Fixed Height
"<tr><td>" ) %
tr( "Fixed Height" ) %
QStringLiteral( "</td>"
"<td>" ) %
QString::number( layer.fixedHeight ) %
QStringLiteral( "</td></tr>" );


// Layer Coordinate Reference Systems
for ( int j = 0; j < std::min( layer.crs.size(), 10 ); j++ )

0 comments on commit e359afc

Please sign in to comment.
You can’t perform that action at this time.