We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e5f382 commit 1636e6aCopy full SHA for 1636e6a
src/server/services/wms/qgswmsgetcapabilities.cpp
@@ -1206,6 +1206,13 @@ namespace QgsWms
1206
QDomElement abstractElement = layerElement.firstChildElement( QStringLiteral( "Abstract" ) );
1207
QDomElement CRSPrecedingElement = abstractElement.isNull() ? titleElement : abstractElement; //last element before the CRS elements
1208
1209
+ if ( CRSPrecedingElement.isNull() )
1210
+ {
1211
+ // keyword list element is never empty
1212
+ const QDomElement keyElement = layerElement.firstChildElement( QStringLiteral( "KeywordList" ) );
1213
+ CRSPrecedingElement = keyElement;
1214
+ }
1215
+
1216
//In case the number of advertised CRS is constrained
1217
if ( !constrainedCrsList.isEmpty() )
1218
{
0 commit comments