H there x 2,

That is quite a puzzle.

It may be a case of:

   1. Trying to reproduce the error with the standard data directory and
   making a bug report
   2. Trying the different version between 2.22.2 and 2.25.1 to see when it
   breaks (and then we could learn more)
   If doing this approach it is best to bisect debugging approach: take a
   version in the middle, and then you know to test higher or lower.  Take in
   the middle of the new range etc...


--
Jody Garnett


On Jun 9, 2024 at 11:59:07 PM, Carsten Klein <c.kl...@datagis.com> wrote:

> Hi there,
>
> I've updated one of our GeoServes from version 2.22.2 to latest stable
> 2.25.1. When requesting SLD-styled maps via WMS I'm getting this OWS
> exception:
>
> Error rendering layer mga.bl: Trying to evaluate the function as Object
> but the method parameter is set as COLOR
>
> I guess, it's about the Interpolate function, which we use to vary line
> colors depending on wms_scale_denominator:
>
>     <Fill>
>         <CssParameter name="fill">
>             <ogc:Function name="Interpolate">
>                 <ogc:Function name="env">
>                     <ogc:Literal>wms_scale_denominator</ogc:Literal>
>                 </ogc:Function>
>                 <ogc:Literal>2132</ogc:Literal>
>                 <ogc:Literal>#202020</ogc:Literal>
>                 <ogc:Literal>17471320</ogc:Literal>
>                 <ogc:Literal>#404040</ogc:Literal>
>                 <ogc:Literal>color</ogc:Literal>
>             </ogc:Function>
>         </CssParameter>
>     </Fill>
>
> There's no longer any error after removing that function from SLDs.
>
> The styles have not been changed. These used to work well with the 2.22.2
> version.
>
> I haven't found any breaking changes in the documentation for filter
> function Interpolate. Actually, my SLD seems quite identical to what the
> documentation shows:
>
>
> https://docs.geoserver.org/main/en/user/styling/sld/tipstricks/transformation-func.html#id2
>
> Any help and ideas are very appreciated.
>
> Cheers
> Carsten
> _______________________________________________
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to