Skip to content

Commit

Permalink
Fixes schemaLocation in WMS GetCapabilities. Fixes #32085
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Oct 23, 2019
1 parent 13ad9d6 commit 5564e80
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/services/wms/qgswmsgetcapabilities.cpp
Expand Up @@ -209,6 +209,7 @@ namespace QgsWms
schemaLocation += QLatin1String( " http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd" );
schemaLocation += QLatin1String( " http://www.opengis.net/sld" );
schemaLocation += QLatin1String( " http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd" );

if ( QgsServerProjectUtils::wmsInspireActivate( *project ) )
{
wmsCapabilitiesElement.setAttribute( QStringLiteral( "xmlns:inspire_common" ), QStringLiteral( "http://inspire.ec.europa.eu/schemas/common/1.0" ) );
Expand All @@ -217,7 +218,9 @@ namespace QgsWms
schemaLocation += QLatin1String( " http://inspire.ec.europa.eu/schemas/inspire_vs/1.0/inspire_vs.xsd" );
}

schemaLocation += QLatin1String( " http://www.qgis.org/wms" );
schemaLocation += " " + hrefString + "SERVICE=WMS&REQUEST=GetSchemaExtension";

wmsCapabilitiesElement.setAttribute( QStringLiteral( "xsi:schemaLocation" ), schemaLocation );
}
wmsCapabilitiesElement.setAttribute( QStringLiteral( "version" ), version );
Expand Down

0 comments on commit 5564e80

Please sign in to comment.