/** * Creates a shallow copy of the given Dimension object * * @param info */ public DimensionInfoImpl(DimensionInfo info) { super(); this.enabled = info.isEnabled(); this.attribute = info.getAttribute(); this.endAttribute = info.getEndAttribute(); this.presentation = info.getPresentation(); this.resolution = info.getResolution(); this.units = info.getUnits(); this.unitSymbol = info.getUnitSymbol(); this.defaultValue = info.getDefaultValue(); this.enabled = info.isEnabled(); }
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()); } }
/** * Builds the proper presentation given the specified value domain * * @param dimension * @param values */ String getCustomDomainRepresentation(DimensionInfo dimension, List<String> values) { String metadata = null; final StringBuilder buff = new StringBuilder(); if (DimensionPresentation.LIST == dimension.getPresentation()) { for (String value : values) { buff.append(value.trim()); buff.append(","); } metadata = buff.substring(0, buff.length() - 1); } else if (DimensionPresentation.DISCRETE_INTERVAL == dimension.getPresentation()) { buff.append(values.get(0)); buff.append("/"); buff.append(values.get(0)); buff.append("/"); final BigDecimal resolution = dimension.getResolution(); if (resolution != null) { buff.append(resolution); } metadata = buff.toString(); } return metadata; }
timeDimension = updatedDimensions.remove(ResourceInfo.TIME); if (timeDimension != null) { final BigDecimal resolution = timeDimension.getResolution(); if (resolution != null) { setupTimeResolution(resolution); final BigDecimal resolution = elevationDimension.getResolution(); if (resolution != null) { elevationResolutionValue = resolution.doubleValue();
buff.append("/"); BigDecimal resolution = dimension.getResolution(); if (resolution != null) { buff.append(resolution.doubleValue());
buff.append("/"); final BigDecimal resolution = dimension.getResolution(); if (resolution != null) {
if (elevation.getPresentation() == DimensionPresentation.LIST || (elevation.getPresentation() == DimensionPresentation.DISCRETE_INTERVAL && elevation.getResolution() == null)) { final UniqueVisitor visitor = new UniqueVisitor(elevation.getAttribute()); collection.accepts(visitor, null);
element("wcs:endPosition", maxTime); if (timeInfo.getPresentation() == DimensionPresentation.DISCRETE_INTERVAL) { BigDecimal resolution = timeInfo.getResolution(); if (resolution == null) { resolution =