Skip to content
Permalink
Browse files
Fixed indentation
  • Loading branch information
leojth authored and pblottiere committed May 18, 2021
1 parent 56876a4 commit 401721306c55aa65b7f3c7bb1697ef0781ded676
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/server/services/wmts/qgswmtsgetcapabilities.cpp
@@ -417,7 +417,7 @@ namespace QgsWmts
QDomElement bboxElement = doc.createElement( QStringLiteral( "ows:BoundingBox" ) );
bboxElement.setAttribute( QStringLiteral( "crs" ), tms.ref );
QDomElement lowerCornerElement = doc.createElement( QStringLiteral( "ows:LowerCorner" ) );
if (invert)
if ( invert )
{
QDomText lowerCornerText = doc.createTextNode( qgsDoubleToString( QgsServerProjectUtils::floorWithPrecision( rect.yMinimum(), precision ), precision ) + ' ' + qgsDoubleToString( QgsServerProjectUtils::floorWithPrecision( rect.xMinimum(), precision ), precision ) );
lowerCornerElement.appendChild( lowerCornerText );
@@ -429,7 +429,7 @@ namespace QgsWmts
}
bboxElement.appendChild( lowerCornerElement );
QDomElement upperCornerElement = doc.createElement( QStringLiteral( "ows:UpperCorner" ) );
if (invert)
if ( invert )
{
QDomText upperCornerText = doc.createTextNode( qgsDoubleToString( QgsServerProjectUtils::ceilWithPrecision( rect.yMaximum(), precision ), precision ) + ' ' + qgsDoubleToString( QgsServerProjectUtils::ceilWithPrecision( rect.xMaximum(), precision ), precision ) );
upperCornerElement.appendChild( upperCornerText );

0 comments on commit 4017213

Please sign in to comment.