public CoverageDimensionImpl(CoverageDimensionInfo other) { this.id = other.getId(); this.name = other.getName(); this.description = other.getDescription(); this.range = other.getRange(); this.nullValues = other.getNullValues(); this.unit = other.getUnit(); this.dimensionType = other.getDimensionType(); }
assertEquals(Double.NEGATIVE_INFINITY, range.getMinimum(), DELTA); assertEquals(Double.POSITIVE_INFINITY, range.getMaximum(), DELTA); assertEquals("GridSampleDimension[-Infinity,Infinity]", dimension.getDescription()); List<Double> nullValues = dimension.getNullValues(); assertEquals(0, nullValues.size());
assertEquals(Double.NEGATIVE_INFINITY, range.getMinimum(), DELTA); assertEquals(Double.POSITIVE_INFINITY, range.getMaximum(), DELTA); assertEquals("GridSampleDimension[-Infinity,Infinity]", dimension.getDescription()); List<Double> nullValues = dimension.getNullValues(); assertEquals(-9999.0, nullValues.get(0), DELTA); assertEquals(-100.0, range.getMinimum(), DELTA); assertEquals(1000.0, range.getMaximum(), DELTA); assertEquals("GridSampleDimension[-100.0,1000.0]", dimension.getDescription()); nullValues = dimension.getNullValues(); assertEquals(-999.0, nullValues.get(0), DELTA);