@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); reader.dispose(); }
public RasterManager getRasterManager() { return rasterManager; }
RasterLayerRequest { public RasterManager getRasterManager() { return rasterManager; } }
RasterLayerRequest { public RasterManager getRasterManager() { return rasterManager; } RasterLayerRequest(
            final GeneralParameterValue[] params, final RasterManager rasterManager); }
RasterLayerRequest { public RasterManager getRasterManager() { return rasterManager; } RasterLayerRequest(
            final GeneralParameterValue[] params, final RasterManager rasterManager); List<?> getElevation(); String getSortClause(); GeneralParameterValue[] getParams(); void setSortClause(String sortClause); Filter getFilter(); Envelope2D getRequestedBounds(); List<?> getRequestedTimes(); boolean isMultithreadingAllowed(); DecimationPolicy getDecimationPolicy(); boolean isHeterogeneousGranules(); boolean isUseAlternativeCRS(); ExcessGranulePolicy getExcessGranuleRemovalPolicy(); void setExcessGranuleRemovalPolicy(ExcessGranulePolicy policy); void setHeterogeneousGranules(final boolean heterogeneousGranules); RasterManager getRasterManager(); Map<String, List> getRequestedAdditionalDomains(); boolean isAccurateResolution(); void setAccurateResolution(boolean accurateResolution); double[] getVirtualNativeResolution(); 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(); MergeBehavior getMergeBehavior(); OverviewPolicy getOverviewPolicy(); boolean isEmpty(); int[] getBands(); Geometry getGeometryMask(); void setGeometryMask(Geometry geometryMask); double getMaskingBufferPixels(); void setMaskingBufferPixels(double maskingBufferPixels); boolean isSetRoiProperty(); void setSetRoiProperty(boolean setRoiProperty); @Override String toString(); boolean isRescalingEnabled(); }
RasterLayerRequest { public RasterManager getRasterManager() { return rasterManager; } RasterLayerRequest(
            final GeneralParameterValue[] params, final RasterManager rasterManager); List<?> getElevation(); String getSortClause(); GeneralParameterValue[] getParams(); void setSortClause(String sortClause); Filter getFilter(); Envelope2D getRequestedBounds(); List<?> getRequestedTimes(); boolean isMultithreadingAllowed(); DecimationPolicy getDecimationPolicy(); boolean isHeterogeneousGranules(); boolean isUseAlternativeCRS(); ExcessGranulePolicy getExcessGranuleRemovalPolicy(); void setExcessGranuleRemovalPolicy(ExcessGranulePolicy policy); void setHeterogeneousGranules(final boolean heterogeneousGranules); RasterManager getRasterManager(); Map<String, List> getRequestedAdditionalDomains(); boolean isAccurateResolution(); void setAccurateResolution(boolean accurateResolution); double[] getVirtualNativeResolution(); 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(); MergeBehavior getMergeBehavior(); OverviewPolicy getOverviewPolicy(); boolean isEmpty(); int[] getBands(); Geometry getGeometryMask(); void setGeometryMask(Geometry geometryMask); double getMaskingBufferPixels(); void setMaskingBufferPixels(double maskingBufferPixels); boolean isSetRoiProperty(); void setSetRoiProperty(boolean setRoiProperty); @Override String toString(); boolean isRescalingEnabled();  }