/** * Returns the actual resolution used to read the data given the specified target resolution and * the specified overview policy * * @param policy * @param resolutions * @return * @throws IOException */ public double[] getReadingResolutions(OverviewPolicy policy, double[] requestedResolution) throws IOException { // Default implementation for backwards compatibility return getReadingResolutions(coverageName, policy, requestedResolution); }
@Override public double[] getReadingResolutions( final String coverageName, final OverviewPolicy policy, final double[] requestedResolution) throws IOException { synchronized (this) { if (!setupResolutions(coverageName)) { LOGGER.warn("Cannot find the overview statistics for the requested coverage name"); return null; } return super.getReadingResolutions(coverageName, policy, requestedResolution); } }