[Dive4elements-commits] [PATCH 11 of 19] WQAdapted: Updated to use RangeAccess instead of FLYSUtils

Wald Commits scm-commit at wald.intevation.org
Thu Jan 24 14:14:23 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1358942439 -3600
# Node ID 96ea983b5c45ffec40786072710e0d0c9e7ddd4a
# Parent  c53b3fdc9821138230ae77be86766e938f7c58de
WQAdapted: Updated to use RangeAccess instead of FLYSUtils.

diff -r c53b3fdc9821 -r 96ea983b5c45 flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WQAdapted.java
--- 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);


More information about the Dive4elements-commits mailing list