Skip to content
Permalink
Browse files
Transform layerName for typeName in WFS GetCapabilities
  • Loading branch information
rldhont committed Jul 19, 2013
1 parent c448360 commit d94ecd37463af6db0a44ac7c04a33cf3ba0ae502
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/mapserver/qgsprojectparser.cpp
@@ -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 );

0 comments on commit d94ecd3

Please sign in to comment.