Class CoverageStyleBuilder

java.lang.Object
repast.simphony.gis.display.CoverageStyleBuilder

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CoverageStyleBuilder

      public CoverageStyleBuilder()
  • Method Details

    • 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