Mercurial > dive4elements > river
changeset 8380:6350abaf2a7e
Purge RiverUtils from ATExporter.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 06 Oct 2014 14:49:00 +0200 |
parents | 2fa4c00f9461 |
children | 15f4e4785288 |
files | artifacts/src/main/java/org/dive4elements/river/exports/ATExporter.java |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/ATExporter.java Mon Oct 06 13:41:14 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/ATExporter.java Mon Oct 06 14:49:00 2014 +0200 @@ -31,7 +31,7 @@ import org.dive4elements.river.model.River; import org.dive4elements.river.model.TimeInterval; import org.dive4elements.river.themes.ThemeDocument; -import org.dive4elements.river.utils.RiverUtils; +import org.dive4elements.river.artifacts.access.RiverAccess; import org.dive4elements.river.artifacts.access.RangeAccess; public class ATExporter @@ -93,9 +93,8 @@ return; } - River river = RiverUtils.getRiver(master); - RangeAccess rangeAccess = new RangeAccess(master); - double[] kms = rangeAccess.getLocations(); + River river = new RiverAccess(master).getRiver(); + double[] kms = new RangeAccess(master).getLocations(); Gauge gauge = river.determineGaugeByPosition(kms[0]); if (Math.abs(kms[0] - gauge.getStation().doubleValue()) < 1e-4) {