Skip to content

Commit

Permalink
WMS 1.3 compliance: Each OnlineResource URL intended for HTTP Get req…
Browse files Browse the repository at this point in the history
…uests in the capabilities document is a URL prefix
  • Loading branch information
mhugent committed Nov 29, 2016
1 parent 0e0cf3e commit 36e89a3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/server/qgswmsserver.cpp
Expand Up @@ -427,6 +427,12 @@ QDomDocument QgsWmsServer::getCapabilities( const QString& version, bool fullPro
hrefString = serviceUrl();
}

//href needs to be a prefix
if ( !hrefString.endsWith( "?" ) && !hrefString.endsWith( "&" ) )
{
hrefString.append( hrefString.contains( "?" ) ? "&" : "?" );
}

if ( version == QLatin1String( "1.1.1" ) )
{
doc = QDomDocument( QStringLiteral( "WMT_MS_Capabilities SYSTEM 'http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd'" ) ); //WMS 1.1.1 needs DOCTYPE "SYSTEM http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd"
Expand Down

0 comments on commit 36e89a3

Please sign in to comment.