Mercurial > dive4elements > river
changeset 4856:d9ef525bff08
ChartGenerator, ComputedDischargeCurveExporter: Updated to use RangeAccess instead of FLYSUtils.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 23 Jan 2013 13:01:21 +0100 |
parents | 96ea983b5c45 |
children | c7133c1f8ede |
files | flys-artifacts/src/main/java/de/intevation/flys/exports/ComputedDischargeCurveExporter.java |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ComputedDischargeCurveExporter.java Wed Jan 23 13:00:39 2013 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ComputedDischargeCurveExporter.java Wed Jan 23 13:01:21 2013 +0100 @@ -29,6 +29,7 @@ import de.intevation.flys.artifacts.FLYSArtifact; +import de.intevation.flys.artifacts.access.RangeAccess; import de.intevation.flys.artifacts.model.CalculationResult; import de.intevation.flys.artifacts.model.WQKms; import de.intevation.flys.artifacts.model.WKmsJRDataSource; @@ -193,7 +194,8 @@ source.addMetaData("date", df.format(new Date())); - double[] kms = FLYSUtils.getKmRange(flys); + RangeAccess rangeAccess = new RangeAccess(flys, null); + double[] kms = rangeAccess.getKmRange(); source.addMetaData("range", String.valueOf(kms[0])); source.addMetaData("calculation", Resources.getMsg(