Skip to content
Permalink
Browse files

WMS: add keyword attribute for sia feature info output

  • Loading branch information
mhugent committed Oct 29, 2012
1 parent 2e32aa0 commit 7e02f21925ec3b657b317d1c4ff4ea9c7d2d2c7d
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/mapserver/qgsprojectparser.cpp
@@ -1723,13 +1723,19 @@ void QgsProjectParser::serviceCapabilities( QDomElement& parentElement, QDomDocu
QDomElement keywordListElem = propertiesElem.firstChildElement( "WMSKeywordList" );
if ( !keywordListElem.isNull() )
{
bool siaFormat = featureInfoFormatSIA2045();

QDomElement wmsKeywordElem = doc.createElement( "KeywordList" );
QDomNodeList keywordList = keywordListElem.elementsByTagName( "value" );
for ( int i = 0; i < keywordList.size(); ++i )
{
QDomElement keywordElem = doc.createElement( "Keyword" );
QDomText keywordText = doc.createTextNode( keywordList.at( i ).toElement().text() );
keywordElem.appendChild( keywordText );
if ( siaFormat )
{
keywordElem.setAttribute( "vocabulary", "SIA_Geo405" );
}
wmsKeywordElem.appendChild( keywordElem );
}

0 comments on commit 7e02f21

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