Package repast.simphony.gis.display
Class CoverageStyleBuilder
java.lang.Object
repast.simphony.gis.display.CoverageStyleBuilder
Builds various types of Styles for GridGoverages.
- Author:
- Eric Tatara
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.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).
-
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
-