|
@@ -2167,7 +2167,7 @@ QString QgsWmsProvider::layerMetadata( QgsWmsLayerProperty &layer ) |
|
|
} |
|
|
|
|
|
// Layer Coordinate Reference Systems |
|
|
for ( int j = 0; j < std::min( layer.crs.size(), 10 ); j++ ) |
|
|
for ( int j = 0; j < std::min( static_cast< int >( layer.crs.size() ), 10 ); j++ ) |
|
|
{ |
|
|
metadata += QStringLiteral( "<tr><td>" ) % |
|
|
tr( "Available in CRS" ) % |
|
@@ -3275,7 +3275,9 @@ QgsRasterIdentifyResult QgsWmsProvider::identify( const QgsPointXY &point, QgsRa |
|
|
dom.setContent( gmlByteArray ); // gets XML encoding |
|
|
gmlByteArray.clear(); |
|
|
QTextStream stream( &gmlByteArray ); |
|
|
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) |
|
|
stream.setCodec( QTextCodec::codecForName( "UTF-8" ) ); |
|
|
#endif |
|
|
dom.save( stream, 4, QDomNode::EncodingFromTextStream ); |
|
|
|
|
|
QgsDebugMsgLevel( "GML UTF-8 (first 2000 bytes):\n" + gmlByteArray.left( 2000 ), 2 ); |
|
|