# HG changeset patch # User Felix Wolfsteller # Date 1358942481 -3600 # Node ID d9ef525bff08318468f53bc98b147e887b9a3b45 # Parent 96ea983b5c45ffec40786072710e0d0c9e7ddd4a ChartGenerator, ComputedDischargeCurveExporter: Updated to use RangeAccess instead of FLYSUtils. diff -r 96ea983b5c45 -r d9ef525bff08 flys-artifacts/src/main/java/de/intevation/flys/exports/ComputedDischargeCurveExporter.java --- 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(