WFS QGIS Server OnlineResource is an attribute in GetCapabilities for DCPType

This commit is contained in:
D'Hont René-Luc 2012-11-18 22:17:10 +01:00
parent 43819130c9
commit 339834139a

View File

@ -179,11 +179,8 @@ QDomDocument QgsWFSServer::getCapabilities()
//only Get supported for the moment //only Get supported for the moment
QDomElement getElement = doc.createElement( "Get"/*wfs:Get*/ ); QDomElement getElement = doc.createElement( "Get"/*wfs:Get*/ );
httpElement.appendChild( getElement ); httpElement.appendChild( getElement );
QDomElement olResourceElement = doc.createElement( "OnlineResource"/*wfs:OnlineResource*/ );
olResourceElement.setAttribute( "xlink:type", "simple" );
requestUrl.truncate( requestUrl.indexOf( "?" ) + 1 ); requestUrl.truncate( requestUrl.indexOf( "?" ) + 1 );
olResourceElement.setAttribute( "xlink:href", hrefString ); getElement.setAttribute( "OnlineResource", hrefString );
getElement.appendChild( olResourceElement );
//wfs:DescribeFeatureType //wfs:DescribeFeatureType
QDomElement describeFeatureTypeElement = doc.createElement( "DescribeFeatureType"/*wfs:DescribeFeatureType*/ ); QDomElement describeFeatureTypeElement = doc.createElement( "DescribeFeatureType"/*wfs:DescribeFeatureType*/ );