【问题标题】:SLD Filter MAX functionSLD 过滤器 MAX 功能
【发布时间】:2019-08-25 23:49:40
【问题描述】:

'density' 是一个表格列,我想得到哪个最大值

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

然后我收到消息“无法找到函数最大值”。哪里不对?

【问题讨论】:

    标签: geoserver sld


    【解决方案1】:

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

    xmlns:ogc="http://www.opengis.net/ogc"
    

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-08-27
    • 2021-02-27
    • 2012-03-26
    • 2014-11-01
    • 2018-09-30
    • 2013-09-30
    • 1970-01-01
    相关资源
    最近更新 更多