我有使用Wingdings字体的SLD样式表,如下所示:
<sld:WellKnownName>ttf://Wingdings#0xE0</sld:WellKnownName>
<sld:Fill>
<sld:CssParameter name="fill">#0000FF</sld:CssParameter>
<sld:CssParameter name="fill-opacity">0.5</sld:CssParameter>
</sld:Fill>
但Geoserver抛出了以下错误:
Caused by: java.lang.IllegalArgumentException: The specified mark ttf://Wingdings#0xE0 was not found!
at org.geotools.renderer.style.SLDStyleFactory.createMarkStyle(SLDStyleFactory.java:721)
at org.geotools.renderer.style.SLDStyleFactory.createPointStyle(SLDStyleFactory.java:684)
at org.geotools.renderer.style.SLDStyleFactory.getGraphicStroke(SLDStyleFactory.java:1017)
at org.geotools.renderer.style.SLDStyleFactory.createLineStyle(SLDStyleFactory.java:516)
at org.geotools.renderer.style.SLDStyleFactory.createStyleInternal(SLDStyleFactory.java:383)
at org.geotools.renderer.style.SLDStyleFactory.createStyle(SLDStyleFactory.java:333)
at org.geotools.renderer.style.SLDStyleFactory.createStyle(SLDStyleFactory.java:296)
at org.geotools.renderer.lite.StreamingRenderer.processSymbolizers(StreamingRenderer.java:2608)
at org.geotools.renderer.lite.StreamingRenderer.processFeature(StreamingRenderer.java:2490)
at org.geotools.renderer.lite.StreamingRenderer.drawPlain(StreamingRenderer.java:2325)
我尝试将Wingding.ttf复制到geoserver_data / styles文件夹,其中我的SLD样式也存在,但它不起作用并引发异常,它不支持该字体。我的应用程序已停止在ubuntu服务器上工作,但适用于mac osx系统。如何解决这个问题?
Geoserver版本是2.13