Skip to content
Permalink
Browse files

Add BBOX and CRS before layers definition

  • Loading branch information
pblottiere authored and rldhont committed May 2, 2018
1 parent 9e5f382 commit 1636e6a45aa0af5a29b46ac361f0ef3b76276f91
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/server/services/wms/qgswmsgetcapabilities.cpp
@@ -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() )
{

0 comments on commit 1636e6a

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