Skip to content

Commit 7e02f21

Browse files
committed
WMS: add keyword attribute for sia feature info output
1 parent 2e32aa0 commit 7e02f21

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/mapserver/qgsprojectparser.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -1723,13 +1723,19 @@ void QgsProjectParser::serviceCapabilities( QDomElement& parentElement, QDomDocu
17231723
QDomElement keywordListElem = propertiesElem.firstChildElement( "WMSKeywordList" );
17241724
if ( !keywordListElem.isNull() )
17251725
{
1726+
bool siaFormat = featureInfoFormatSIA2045();
1727+
17261728
QDomElement wmsKeywordElem = doc.createElement( "KeywordList" );
17271729
QDomNodeList keywordList = keywordListElem.elementsByTagName( "value" );
17281730
for ( int i = 0; i < keywordList.size(); ++i )
17291731
{
17301732
QDomElement keywordElem = doc.createElement( "Keyword" );
17311733
QDomText keywordText = doc.createTextNode( keywordList.at( i ).toElement().text() );
17321734
keywordElem.appendChild( keywordText );
1735+
if ( siaFormat )
1736+
{
1737+
keywordElem.setAttribute( "vocabulary", "SIA_Geo405" );
1738+
}
17331739
wmsKeywordElem.appendChild( keywordElem );
17341740
}
17351741

0 commit comments

Comments
 (0)