Skip to content
Permalink
Browse files

WMS 1.3 compliance: Each OnlineResource URL intended for HTTP Get req…

…uests in the capabilities document is a URL prefix
  • Loading branch information
mhugent authored and rldhont committed Dec 13, 2016
1 parent 3964110 commit 4336595ab23b107f60c064139fdcb5386991a2da
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/server/qgswmsserver.cpp
@@ -423,6 +423,12 @@ QDomDocument QgsWMSServer::getCapabilities( QString version, bool fullProjectInf
hrefString = serviceUrl();
}

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

if ( version == "1.1.1" )
{
doc = QDomDocument( "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"

0 comments on commit 4336595

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