sld中使用多个字段做标注


概述

本文讲述如何在SLD中使用多个字段做标注。

效果

多字段标注

实现代码

<sld:Label>
    <ogc:Function name="strConcat">
            <ogc:Function name="strConcat">
                    <ogc:Function name="strConcat">
                            <ogc:PropertyName>NAME</ogc:PropertyName>
                            <ogc:Literal>(</ogc:Literal>
                    </ogc:Function>
                    <ogc:PropertyName>PINYIN</ogc:PropertyName>
            </ogc:Function>
            <ogc:Literal>)</ogc:Literal>
    </ogc:Function>
</sld:Label>

技术博客
CSDN:http://blog.csdn.NET/gisshixisheng
博客园:http://www.cnblogs.com/lzugis/
在线教程
http://edu.csdn.Net/course/detail/799
Github
https://github.com/lzugis/
联系方式

类型 内容
qq 1004740957
公众号 lzugis15
e-mail niujp08@qq.com
webgis群 1004740957
Android群 337469080
GIS数据可视化群 458292378

logo

转载自:https://blog.csdn.net/GISShiXiSheng/article/details/78200394

You may also like...