Class CoverageStyleBuilder


  • public class CoverageStyleBuilder
    extends Object
    Builds various types of Styles for GridGoverages.
    Author:
    Eric Tatara
    • Constructor Detail

      • CoverageStyleBuilder

        public CoverageStyleBuilder()
    • Method Detail

      • buildRGBStyle

        public org.geotools.styling.Style buildRGBStyle​(org.geotools.coverage.grid.GridCoverage2D cov)
        This method examines the names of the sample dimensions in the provided coverage looking for "red...", "green..." and "blue..." (case insensitive match). If these names are not found it uses bands 1, 2, and 3 for the red, green and blue channels. It then sets up a raster symbolizer and returns this wrapped in a Style.
        Returns:
        a new Style object containing a raster symbolizer set up for RGB image