“密度”是一个表格列,我要获取的最大值
<Rule>
<ogc:Filter>
<ogc:PropertyIsLessThan>
<ogc:PropertyName>density</ogc:PropertyName>
<ogc:Mul>
<ogc:Function name="max">
<ogc:PropertyName>density</ogc:PropertyName>
</ogc:Function>
<ogc:Literal>0.166</ogc:Literal>
</ogc:Mul>
</ogc:PropertyIsLessThan>
</ogc:Filter>
<PolygonSymbolizer>
<Fill>
<CssParameter name="fill">#96B6F3</CssParameter>
<CssParameter name="fill-opacity">0.8</CssParameter>
</Fill>
</PolygonSymbolizer>
</Rule>
然后我收到消息“无法找到函数最大值”。什么不对?
答案 0 :(得分:0)
The error is related to not declaring OGC namespace in StyleLayerDescriptor of your SLD file, so the max function cannot be resolved. Try adding following line as an attribute of StyleLayerDescriptor:
xmlns:ogc="http://www.opengis.net/ogc"