| java.lang.Object org.geotools.coverage.GridSampleDimension org.geotools.coverage.grid.Grid2DSampleDimension
Grid2DSampleDimension | final class Grid2DSampleDimension extends GridSampleDimension (Code) | | Describes the band values for a grid coverage.
since: 2.1 version: $Id: Grid2DSampleDimension.java 22817 2006-11-17 17:24:55Z desruisseaux $ author: Martin Desruisseaux |
create | static boolean create(CharSequence name, RenderedImage image, GridSampleDimension[] src, GridSampleDimension[] dst)(Code) | | Creates a set of sample dimensions for the given image. The array length of both
arguments must matches the number of bands in the supplied
image .
Parameters: name - The name for data (e.g. "Elevation"). Parameters: image - The image for which to create a set of sample dimensions. Parameters: src - User-provided sample dimensions, or null if none. Parameters: dst - The array where to put sample dimensions. true if all sample dimensions are geophysics (quantitative), or false if all sample dimensions are non-geophysics (qualitative). throws: IllegalArgumentException - if geophysics and non-geophysics dimensions are mixed. |
create | static GridSampleDimension[] create(CharSequence name, Raster raster, double[] min, double[] max, Unit units, Color[][] colors, RenderingHints hints)(Code) | | Creates a set of sample dimensions for the given raster.
Parameters: name - The name for data (e.g. "Elevation"). Parameters: raster - The raster. Parameters: min - The minimal value for each bands, or null for computing it automatically. Parameters: max - The maximal value for each bands, or null for computing it automatically. Parameters: units - The units of sample values, or null if unknow. Parameters: colors - The colors to use for values from min to max for eachbands, or null for a default color palette. If non-null, each arrays colors[b] may have any length; colors will be interpolated as needed. Parameters: hints - An optional set of rendering hints, or null if none. Those hints willnot affect the sample dimensions to be created. However, they may affect the sampledimensions to be returned by Grid2DSampleDimension.geophysics geophysics(false) , i.e.the view to be used at rendering time. The optional hintHints.SAMPLE_DIMENSION_TYPE specifies the SampleDimensionTypeto be used at rendering time, which can be one ofSampleDimensionType.UBYTE UBYTE orSampleDimensionType.USHORT USHORT. The sample dimension for the given raster. |
getColorInterpretation | public ColorInterpretation getColorInterpretation()(Code) | | Returns the color interpretation of the sample dimension.
|
getColorModel | public ColorModel getColorModel()(Code) | | Returns a color model for this sample dimension.
|
getSampleDimensionType | public SampleDimensionType getSampleDimensionType()(Code) | | Returns a code value indicating grid value data type.
This will also indicate the number of bits for the data type.
a code value indicating grid value data type. |
|
|