[Geoserver-users] labeling with two attributes

Hi
is it somehow possible to combine two or more feature attributes in one label? Something like this:

strasse + hausnummer

Thanks for your help!

Stefan

Mit freundlichem Gruss
Stefan Ziegler
Leiter Aufsicht

Kanton Solothurn
Bau- und Justizdepartement
Amt für Geoinformation
Rötistrasse 4
4501 Solothurn
Telefon 032 627 75 96
Telefax 032 627 75 98
stefan.ziegler@anonymised.com
http://www.so.ch

Ziegler Stefan ha scritto:

Hi
is it somehow possible to combine two or more feature attributes in one label? Something like this:
<Label>
<ogc:PropertyName>strasse</ogc:PropertyName> + <ogc:PropertyName>hausnummer</ogc:PropertyName>
</Label>

Not with that syntax, but using a function it's possible.
Unfortunately functions are undocumented, but it should
be something like:

<Label>
     <ogc:Function name="strConcat">
       <ogc:PropertyName>strasse</ogc:PropertyName>
       <ogc:PropertyName>hausnummer</ogc:PropertyName>
     </ogc:Function>
</Label>

I haven't tested it. Let me know if it works
Cheers
Andrea