Skip to content

Commit

Permalink
mapserver: added 'alias' property into feature attribute properties o…
Browse files Browse the repository at this point in the history
…f GetProjectSettings response
  • Loading branch information
Marcel Dancak committed Jun 3, 2014
1 parent df7a6d5 commit d9bbd57
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/mapserver/qgsserverprojectparser.cpp
Expand Up @@ -649,9 +649,14 @@ void QgsServerProjectParser::addLayerProjectSettings( QDomElement& layerElem, QD
displayField = vLayer->attributeDisplayName( idx );
}
QDomElement attributeElem = doc.createElement( "Attribute" );
attributeElem.setAttribute( "name", vLayer->attributeDisplayName( idx ) );
attributeElem.setAttribute( "name", field.name() );
attributeElem.setAttribute( "type", QVariant::typeToName( field.type() ) );
attributeElem.setAttribute( "typeName", field.typeName() );
QString alias = vLayer->attributeAlias( idx );
if ( !alias.isEmpty() )
{
attributeElem.setAttribute( "alias", alias );
}

//edit type to text
attributeElem.setAttribute( "editType", vLayer->editorWidgetV2( idx ) );
Expand Down

0 comments on commit d9bbd57

Please sign in to comment.