Skip to content
Permalink
Browse files

Add BBOX and CRS before layers definition

  • Loading branch information
pblottiere committed Apr 26, 2018
1 parent 201f108 commit e39e3b5dfe0b3ec980b0522d27954cc145004e3c
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/server/services/wms/qgswmsgetcapabilities.cpp
@@ -1205,6 +1205,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() )
{

0 comments on commit e39e3b5

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