Skip to content

Commit

Permalink
Add BBOX and CRS before layers definition
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere authored and rldhont committed May 2, 2018
1 parent 9e5f382 commit 1636e6a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/server/services/wms/qgswmsgetcapabilities.cpp
Expand Up @@ -1206,6 +1206,13 @@ namespace QgsWms
QDomElement abstractElement = layerElement.firstChildElement( QStringLiteral( "Abstract" ) );
QDomElement CRSPrecedingElement = abstractElement.isNull() ? titleElement : abstractElement; //last element before the CRS elements

if ( CRSPrecedingElement.isNull() )
{
// keyword list element is never empty
const QDomElement keyElement = layerElement.firstChildElement( QStringLiteral( "KeywordList" ) );
CRSPrecedingElement = keyElement;
}

//In case the number of advertised CRS is constrained
if ( !constrainedCrsList.isEmpty() )
{
Expand Down

0 comments on commit 1636e6a

Please sign in to comment.