Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Apr 6, 2014
1 parent 10c77a5 commit 0305be7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/providers/wms/qgswmscapabilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,9 @@ void QgsWmsCapabilities::parseTileSetProfile( QDomElement const &e )
else if ( e1.hasAttribute( "crs" ) )
bb.crs = e1.attribute( "crs" );
else
{
QgsDebugMsg( "crs of bounding box undefined" );
}

if ( !bb.crs.isEmpty() )
{
Expand Down Expand Up @@ -1399,7 +1401,9 @@ void QgsWmsCapabilities::parseWMTSContents( QDomElement const &e )
else if ( bbox.hasAttribute( "crs" ) )
bb.crs = bbox.attribute( "crs" );
else
{
QgsDebugMsg( "crs of bounding box undefined" );
}

if ( !bb.crs.isEmpty() )
{
Expand Down
4 changes: 4 additions & 0 deletions src/providers/wms/qgswmsprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2646,7 +2646,9 @@ QgsRasterIdentifyResult QgsWmsProvider::identify( const QgsPoint & thePoint, Qgs
else if ( crsType == "EPSG" )
crsText = QString( "%1:%2" ).arg( crsType ).arg( result.property( "crs" ).property( "properties" ).property( "code" ).toString() );
else
{
QgsDebugMsg( QString( "crs not supported:%1" ).arg( result.property( "crs" ).toString() ) );
}

QgsCoordinateReferenceSystem featuresCrs;
featuresCrs.createFromOgcWmsCrs( crsText );
Expand Down Expand Up @@ -3349,7 +3351,9 @@ void QgsWmsTiledImageDownloadHandler::tileReplyFinished()
int tileReqNo = reply->request().attribute( static_cast<QNetworkRequest::Attribute>( TileReqNo ) ).toInt();
int tileNo = reply->request().attribute( static_cast<QNetworkRequest::Attribute>( TileIndex ) ).toInt();
QRectF r = reply->request().attribute( static_cast<QNetworkRequest::Attribute>( TileRect ) ).toRectF();
#ifdef QGISDEBUG
int retry = reply->request().attribute( static_cast<QNetworkRequest::Attribute>( TileRetry ) ).toInt();
#endif

QgsDebugMsg( QString( "tile reply %1 (%2) tile:%3(retry %4) rect:%5,%6 %7,%8) fromcache:%9 error:%10 url:%11" )
.arg( tileReqNo ).arg( mTileReqNo ).arg( tileNo ).arg( retry )
Expand Down

0 comments on commit 0305be7

Please sign in to comment.