/** * Returns the minimum time, formatted according to ISO8601 * * @throws IOException */ public String getBeginTime() throws IOException { Date minTime = accessor.getMinTime(); return format(minTime); }
/** * Returns the minimum time, formatted according to ISO8601 * * @throws IOException */ public String getBeginPosition() throws IOException { Date minTime = accessor.getMinTime(); return format(minTime); }
retval = dimAccessor.getMinTime(); } else if (dimensionName.equals(ResourceInfo.ELEVATION)) { retval = dimAccessor.getMinElevation();
private void handleTimeDimensionRaster( CoverageInfo cvInfo, DimensionInfo timeInfo, ReaderDimensionsAccessor dimension) throws IOException { TreeSet<Object> temporalDomain = null; try { if (timeInfo.getPresentation() != DimensionPresentation.LIST) { Date minValue = dimension.getMinTime(); if (minValue != null) { temporalDomain = new TreeSet<>(); temporalDomain.add(minValue); temporalDomain.add(dimension.getMaxTime()); } } if (temporalDomain == null) { throw new Exception( "The \"List\" presentation of the temporal dimension has been selected"); } } catch (Exception ex) { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, "Dimension has not been extracted. The reason: ", ex); } temporalDomain = dimension.getTimeDomain(); } String timeMetadata = getTemporalDomainRepresentation(timeInfo, temporalDomain); String defaultValue = getDefaultValueRepresentation( cvInfo, ResourceInfo.TIME, DimensionDefaultValueSetting.TIME_CURRENT); writeTimeDimension(timeMetadata, defaultValue, timeInfo.isNearestMatchEnabled()); }
element("gml:timePosition", timeFormat.format(dimensions.getMinTime())); element("gml:timePosition", timeFormat.format(dimensions.getMaxTime()));
String minTime = timeFormat.format(dimensions.getMinTime()); String maxTime = timeFormat.format(dimensions.getMaxTime()); start("wcs:timePeriod"); new BigDecimal( dimensions.getMaxTime().getTime() - dimensions.getMinTime().getTime());
DimensionInfo timeDimension) throws IOException { DateRange actualTimeSubset = new DateRange(accessor.getMinTime(), accessor.getMaxTime()); if (!requestedTimeSubset.intersects(actualTimeSubset)) { throw new WCS20Exception(
if (timeInfo != null && timeInfo.isEnabled()) { SimpleDateFormat timeFormat = dimensions.getTimeFormat(); minTime = timeFormat.format(dimensions.getMinTime()); maxTime = timeFormat.format(dimensions.getMaxTime());
ReaderDimensionsAccessor dimensions = new ReaderDimensionsAccessor(reader); SimpleDateFormat format = dimensions.getTimeFormat(); element("gml:timePosition", format.format(dimensions.getMinTime())); element("gml:timePosition", format.format(dimensions.getMaxTime()));