使用 GeoServer 和 SLD 我正在尝试使用数字格式和连接,但是在数字格式之后生成了一个换行符:
<TextSymbolizer>
<Label>
<ogc:Function name="numberFormat">
<ogc:Literal>###,###,###</ogc:Literal>
<ogc:PropertyName>AREASQFT</ogc:PropertyName>
</ogc:Function>
<ogc:Literal>sq.ft.</ogc:Literal>
...
显示:
8,735
sq. ft.
我希望标签显示,例如:
8,735 sq. ft.
我尝试使用连接功能:
<TextSymbolizer>
<Label>
<ogc:Function name="Concatenate">
<ogc:Function name="numberFormat">
<ogc:Literal>###,###,###</ogc:Literal>
<ogc:PropertyName>AREASQFT</ogc:PropertyName>
</ogc:Function>
<ogc:Literal>sq.ft.</ogc:Literal>
</ogc:Function>
...
但我仍然得到一个换行符:
8,735
sq. ft.
任何帮助,将不胜感激。先谢谢了。