/** * Returns the minimum time, formatted according to ISO8601 * * @throws IOException */ public String getBeginPosition() throws IOException { Date minTime = accessor.getMinTime(); return format(minTime); }
public TimeDimensionHelper( DimensionInfo timeDimension, GridCoverage2DReader reader, String coverageId) throws IOException { this.timeDimension = timeDimension; this.accessor = new ReaderDimensionsAccessor(reader); this.coverageId = coverageId; if (timeDimension.getResolution() != null) { setupResolution(timeDimension.getResolution()); } }
/** * Returns the maximum time, formatted according to ISO8601 * * @throws IOException */ public String getEndPosition() throws IOException { Date maxTime = accessor.getMaxTime(); return format(maxTime); }