Navigation Menu

Skip to content

Commit

Permalink
Transform layerName for typeName in WFS GetCapabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Jul 19, 2013
1 parent c448360 commit d94ecd3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mapserver/qgsprojectparser.cpp
Expand Up @@ -165,7 +165,9 @@ void QgsProjectParser::featureTypeList( QDomElement& parentElement, QDomDocument
QDomElement nameElem = doc.createElement( "Name" );
//We use the layer name even though it might not be unique.
//Because the id sometimes contains user/pw information and the name is more descriptive
QDomText nameText = doc.createTextNode( layer->name() );
QString typeName = layer->name();
typeName = typeName.replace( QString( " " ), QString( "_" ) );
QDomText nameText = doc.createTextNode( typeName );
nameElem.appendChild( nameText );
layerElem.appendChild( nameElem );

Expand Down

0 comments on commit d94ecd3

Please sign in to comment.