This document is archived and information here might be outdated. Recommended version. |
The Label Expression.
[Visual Basic .NET] Public Property LabelExpression As String
[C#] public string LabelExpression {get; set;}
[C++]
HRESULT get_LabelExpression(
System.String* LabelExpression
);
[C++]
HRESULT put_LabelExpression(
BSTR LabelExpression
);
[C++]
Parameters LabelExpression [out, retval]
LabelExpression is a parameter of type BSTR* LabelExpression [in]
LabelExpression is a parameter of type BSTR
Please note that LabelExpression either returns a field name or a simple expression set for a layer. A simple expression could be a concatenation of attribute values from two fields, for example first and last name of a parcel owner. MapServer drops any advanced expression set on the layer in the source map document and returns an empty string.