1

“密度”是一个表格列,我想得到哪个最大值

<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>

然后我收到消息“无法找到函数最大值”。什么是不正确的?

4

1 回答 1

0

该错误与未在 SLD 文件的 StyleLayerDescriptor 中声明 OGC 命名空间有关,因此无法解析 max 函数。尝试添加以下行作为StyleLayerDescriptor的属性:

xmlns:ogc="http://www.opengis.net/ogc"
于 2019-04-08T13:25:34.100 回答