Hi Alen, I tried to render your data with your SLD in GeoServer 2.18.5 and 2.20.0 because I was using almost the same technique, but on an 8-band Sentinel image. I encountered the same problem and even my data with my SLD didn't work anymore. I think a bug was introduced in the code, but I'm not able to identify it. I only noticed these lines in the log file:
org.opengis.parameter.ParameterNotFoundException: Parameter "Bands" is missing. at org.geotools.parameter.ParameterGroup.parameter(ParameterGroup.java:310) at org.geotools.process.raster.JiffleProcess.customizeReadParams(JiffleProcess.java:293) at jdk.internal.reflect.GeneratedMethodAccessor473.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.geotools.process.factory.AnnotationDrivenProcessFactory$InvokeMethodRenderingProcess.customizeReadParams(AnnotationDrivenProcessFactory.java:897) ... I also found a simple workaround for you SLD, but sincerely, I don't know why referring to the first 2 bands before using the two you are interested in makes it work (I calculated the difference, but it doesn't matter: could be as well a sum) : <ogc:Literal> * diff = src[1]-src[0]; * dest = (src[3]-src[2])/(src[3]+src[2]); </ogc:Literal> Bye, Stefano On Sun, Nov 21, 2021 at 1:49 AM Alen Arturo Dioses Avellaneda < alen.dio...@gmail.com> wrote: > Good Afternoon > > I have problems trying to reproduce NDVI on the fly with jiffle on > GeoServer. It seems that jiffle only reads the first two bands [0,1] of my > geotiff file. > > I tried with different GeoServer versions with no success, I would like to > know if it is a bug or is a problem with my file. If it is a file error I > would appreciate it if someone could send me a raster file that works so I > can find what is the problem with my file. The files I used for my test are > attached to this email > > I would appreciate any help. > > Best, > Alen Arturo Dioses Avellaneda > _______________________________________________ > 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