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