/** * Constructs a new environment for the given raster data region. * Should only be used if evaluation takes place at image level zero. * * @param offsetX the x-offset of the raster region * @param offsetY the y-offset of the raster region * @param regionWidth the width of the raster region * @param regionHeight the height of the raster region */ public RasterDataEvalEnv(int offsetX, int offsetY, int regionWidth, int regionHeight) { this(offsetX, offsetY, regionWidth, regionHeight, new LevelImageSupport(regionWidth, regionHeight, ResolutionLevel.MAXRES)); }
@Before public void init() { levelImageSupport = new LevelImageSupport(760, 1120, ResolutionLevel.MAXRES); }
private LevelImageSupport createLevelSupport(int size) { return new LevelImageSupport(size, size, new ResolutionLevel(3, 8)); }
private SingleBandedOpImage(ImageLayout layout, int sourceWidth, int sourceHeight, Map configuration, ResolutionLevel level) { super(layout, configuration, layout.getSampleModel(null), layout.getMinX(null), layout.getMinY(null), layout.getWidth(null), layout.getHeight(null)); levelImageSupport = new LevelImageSupport(sourceWidth, sourceHeight, level); if (getTileCache() == null) { setTileCache(JAI.getDefaultInstance().getTileCache()); } }