"name",
PlanarImage.wrapRenderedImage(getSynthetic(Double.NaN)),
new GeneralEnvelope(new double[] { -90, -180 },
new double[] { 90, 180 }),
new GridSampleDimension[] { new GridSampleDimension(
"sd", new Category[] { new Category("",
Color.BLACK, 0) }, null) }, null, null);
SubchainStyleVisitorCoverageProcessingAdapter rsh = new RasterSymbolizerHelper(gc, null);
RasterSymbolizer rs = extractRasterSymbolizer(sld);
// visit the RasterSymbolizer
rsh.visit(rs);
IndexColorModel icm1 = (IndexColorModel) ((GridCoverage2D)rsh.getOutput()).getRenderedImage().getColorModel();
testRasterSymbolizerHelper(rsh);
////
//
// Test using StyleBuilder
//
////
// get a coverage
gc = CoverageFactoryFinder
.getGridCoverageFactory(null)
.create(
"name",
PlanarImage.wrapRenderedImage(getSynthetic(Double.NaN)),
new GeneralEnvelope(new double[] { -90, -180 },
new double[] { 90, 180 }),
new GridSampleDimension[] { new GridSampleDimension(
"sd", new Category[] { new Category("",
Color.BLACK, 0) }, null) }, null, null);
// build the RasterSymbolizer
StyleBuilder sldBuilder = new StyleBuilder();
rsh = new RasterSymbolizerHelper(gc, null);