[Dive4elements-commits] [PATCH 02 of 19] WINFOArtifact: Use RangeAccess.getLocations instead of FLYSUtils.getLocations

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


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1358934035 -3600
# Node ID 298d540f7b70047991f13cc505f65d188cdfe255
# Parent  88f5ab736448356e5ce3ebf8c219b2d19a556601
WINFOArtifact: Use RangeAccess.getLocations instead of FLYSUtils.getLocations.

diff -r 88f5ab736448 -r 298d540f7b70 flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java	Wed Jan 23 10:39:44 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java	Wed Jan 23 10:40:35 2013 +0100
@@ -11,6 +11,7 @@
 import de.intevation.artifacts.common.utils.StringUtils;
 
 import de.intevation.flys.artifacts.access.Calculation4Access;
+import de.intevation.flys.artifacts.access.RangeAccess;
 
 import de.intevation.flys.artifacts.geom.Lines;
 
@@ -312,7 +313,8 @@
            return error(null, "no.gauge.selected");
         }
 
-        double[] locations = FLYSUtils.getLocations(this);
+        RangeAccess rangeAccess = new RangeAccess(this, null);
+        double[] locations = rangeAccess.getLocations();
 
         if (locations == null) {
             return error(null, "no.locations.selected");
@@ -369,7 +371,8 @@
             return error(new WQKms[0], "no.river.selected");
         }
 
-        double[] locations = FLYSUtils.getLocations(this);
+        RangeAccess rangeAccess = new RangeAccess(this, null);
+        double[] locations = rangeAccess.getLocations();
 
         if (locations == null) {
             return error(new WQKms[0], "no.locations.selected");


More information about the Dive4elements-commits mailing list