Uploaded image for project: 'GeoServer'
  1. GeoServer
  2. GEOS-8045

ChannelSelection after raster RenderingTransformation on a coverageView may throw a IllegalArgumentException: Band number N is not valid

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.9.4, 2.10.2, 2.11-RC1
    • Fix Version/s: 2.9.5, 2.10.3, 2.11.1
    • Component/s: None
    • Labels:
      None

      Description

      A renderingTransformation on a coverageView raster followed by a channelSelection may involve an optimized read operation on the underlying reader which uses a BANDS parameter to avoid reading useless data (https://osgeo-org.atlassian.net/browse/GEOS-7731)

      This may result into a _java.lang.IllegalArgumentException: Band number N is not valid _ since the channelSelection will work on a coverage with a reduced number of bands (due to the optimized read).

      We should make sure to update the underlying channelSelection node in rasterSymbolizer to keep the optimization into account.

        Attachments

          Activity

            People

            • Assignee:
              dany111 Daniele Romagnoli
              Reporter:
              dany111 Daniele Romagnoli
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: