Skip to content

Commit

Permalink
Using title and abstract of vector layer in WFS capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Apr 16, 2012
1 parent 58f754b commit 9a738b4
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/mapserver/qgsprojectparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,25 @@ void QgsProjectParser::featureTypeList( QDomElement& parentElement, QDomDocument
layerElem.appendChild( nameElem );

QDomElement titleElem = doc.createElement( "Title" );
QDomText titleText = doc.createTextNode( layer->name() );
QString titleName = layer->title();
if ( titleName.isEmpty() )
{
titleName = layer->name();
}
QDomText titleText = doc.createTextNode( titleName );
titleElem.appendChild( titleText );
layerElem.appendChild( titleElem );

QDomElement abstractElem = doc.createElement( "Abstract" );
QString abstractName = layer->abstract();
if ( abstractName.isEmpty() )
{
abstractName = "";
}
QDomText abstractText = doc.createTextNode( abstractName );
abstractElem.appendChild( abstractText );
layerElem.appendChild( abstractElem );

//appendExGeographicBoundingBox( layerElem, doc, layer->extent(), layer->crs() );

QDomElement srsElem = doc.createElement( "SRS" );
Expand Down

0 comments on commit 9a738b4

Please sign in to comment.