[Geoserver-users] labeling with two attributes

It works, thanks!
Is there a special character combination for a whitespace? My workaround doesn’t seem pretty smart:

<ogc:Function name=“strConcat”>
<ogc:Function name=“strConcat”>
ogc:PropertyNamestrasse</ogc:PropertyName>
<ogc:Function name=“strSubstring”>
ogc:LiteralA C</ogc:Literal>
ogc:Literal1</ogc:Literal>
ogc:Literal2</ogc:Literal>
</ogc:Function>
</ogc:Function>
ogc:PropertyNamehausnummer</ogc:PropertyName>
</ogc:Function>

Stefan

-----Ursprüngliche Nachricht-----
Von: Andrea Aime [mailto:aaime@anonymised.com]
Gesendet am: Donnerstag, 13. Dezember 2007 18:37
An: Ziegler Stefan
Cc: geoserver-users
Betreff: Re: [Geoserver-users] labeling with two attributes

Ziegler Stefan ha scritto:

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

strasse + hausnummer

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

strasse hausnummer

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

Ziegler Stefan ha scritto:

It works, thanks!
Is there a special character combination for a whitespace? My workaround doesn't seem pretty smart:

<ogc:Function name="strConcat">
<ogc:PropertyName>strasse</ogc:PropertyName>
<ogc:Function name="strSubstring">
<ogc:Literal>A C</ogc:Literal>
<ogc:Literal>1</ogc:Literal>
<ogc:Literal>2</ogc:Literal>
</ogc:Function>
<ogc:PropertyName>hausnummer</ogc:PropertyName>
</ogc:Function>

Oh, you mean you cannot use <ogc:literal> </ogc:literal>
directly? In fact whitespace might be trimmed... glab...
Cheers
Andrea