/** * Returns the maximum time, formatted according to ISO8601 * * @throws IOException */ public String getEndPosition() throws IOException { Date maxTime = accessor.getMaxTime(); return format(maxTime); }
/** * Returns the maximum time, formatted according to ISO8601 * * @throws IOException */ public String getEndTime() throws IOException { Date maxTime = accessor.getMaxTime(); return format(maxTime); }
retval = dimAccessor.getMaxTime(); } else if (dimensionName.equals(ResourceInfo.ELEVATION)) { retval = dimAccessor.getMaxElevation();
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()); }
SimpleDateFormat timeFormat = dimensions.getTimeFormat(); element("gml:timePosition", timeFormat.format(dimensions.getMinTime())); element("gml:timePosition", timeFormat.format(dimensions.getMaxTime()));
Date maxTime = accessor.getMaxTime(); if (maxTime != null) { temporalSubset = new DateRange(maxTime, maxTime);
String maxTime = timeFormat.format(dimensions.getMaxTime()); start("wcs:timePeriod"); element("wcs:beginPosition", minTime); resolution = 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(
SimpleDateFormat timeFormat = dimensions.getTimeFormat(); minTime = timeFormat.format(dimensions.getMinTime()); maxTime = timeFormat.format(dimensions.getMaxTime());
Date date = (Date) tp.getValue(); if (date == null) { date = dimensions.getMaxTime(); Date date = dimensions.getMaxTime(); timeValues.add(date);
SimpleDateFormat format = dimensions.getTimeFormat(); element("gml:timePosition", format.format(dimensions.getMinTime())); element("gml:timePosition", format.format(dimensions.getMaxTime()));