Mercurial > dive4elements > river
changeset 4855:96ea983b5c45
WQAdapted: Updated to use RangeAccess instead of FLYSUtils.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 23 Jan 2013 13:00:39 +0100 |
parents | c53b3fdc9821 |
children | d9ef525bff08 |
files | flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WQAdapted.java |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WQAdapted.java Wed Jan 23 13:00:15 2013 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WQAdapted.java Wed Jan 23 13:00:39 2013 +0100 @@ -17,6 +17,8 @@ import de.intevation.artifacts.common.utils.XMLUtils; +import de.intevation.flys.artifacts.access.RangeAccess; + import de.intevation.flys.model.Gauge; import de.intevation.flys.model.Range; import de.intevation.flys.model.River; @@ -125,7 +127,9 @@ FLYSArtifact flysArtifact = (FLYSArtifact) artifact; - double[] dist = FLYSUtils.getKmRange(flysArtifact); + RangeAccess rangeAccess = new RangeAccess(flysArtifact, context); + double[] dist = rangeAccess.getKmRange(); + // TODO use Access to get River and gauges. River river = FLYSUtils.getRiver(flysArtifact); Wst wst = WstFactory.getWst(river); List<Gauge> gauges = FLYSUtils.getGauges(flysArtifact);