RasterLayerRequest { RasterManager getRasterManager() { return rasterManager; } RasterLayerRequest(final GeneralParameterValue[] params, final RasterManager rasterManager); List<?> getElevation(); String getSortClause(); void setSortClause(String sortClause); Filter getFilter(); List<?> getRequestedTimes(); boolean isMultithreadingAllowed(); DecimationPolicy getDecimationPolicy(); boolean isHeterogeneousGranules(); void setHeterogeneousGranules(final boolean heterogeneousGranules); Map<String, List> getRequestedAdditionalDomains(); boolean isAccurateResolution(); void setAccurateResolution(boolean accurateResolution); Color getInputTransparentColor(); Color getOutputTransparentColor(); int getMaximumNumberOfGranules(); FootprintBehavior getFootprintBehavior(); int getDefaultArtifactsFilterThreshold(); double getArtifactsFilterPTileThreshold(); boolean isBlend(); ReadType getReadType(); double[] getBackgroundValues(); void setInterpolation(Interpolation interpolation); Interpolation getInterpolation(); Dimension getTileDimensions(); @Override String toString(); MergeBehavior getMergeBehavior(); OverviewPolicy getOverviewPolicy(); boolean isEmpty();  }
@Test public void testResolutions() throws Exception { final File testMosaic = TestData.file(this, "/overview/0"); assertTrue(testMosaic.exists()); final ImageMosaicReader reader = (ImageMosaicReader) new ImageMosaicFormat().getReader( testMosaic, null); final RasterManager manager = reader.getRasterManager(reader.getGridCoverageNames()[0]); GeneralEnvelope oe = reader.getOriginalEnvelope(); double offset = oe.getSpan(0) * 0.9; GeneralEnvelope reNative = new GeneralEnvelope(oe); reNative.setRange(0, oe.getMinimum(0) - offset, oe.getMaximum(0) - offset); Envelope reTransformed = CRS.transform(reNative, CRS.decode("EPSG:3857", true)); GridGeometry2D gg = new GridGeometry2D(new GridEnvelope2D(0, 0, 35, 47), reTransformed); ParameterValue<GridGeometry2D> ggParam = AbstractGridFormat.READ_GRIDGEOMETRY2D .createValue(); ggParam.setValue(gg); final RasterLayerRequest request = new RasterLayerRequest( new GeneralParameterValue[] { ggParam }, manager); double[] rr = request.spatialRequestHelper.getComputedResolution(); double resolution = Math.min(rr[0], rr[1]); assertTrue(resolution > 60); }