[Dive4elements-commits] [PATCH 17 of 19] WINFOArtifact: Updated to use RangeAccess instead of FLYSUtils
Wald Commits
scm-commit at wald.intevation.org
Thu Jan 24 14:14:29 CET 2013
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1358942736 -3600
# Node ID aae2b7492c1eff84651f1ce577b5d2195017cb0f
# Parent ba4d7f1538900c896d3db83c825d22e6aa0fdf3d
WINFOArtifact: Updated to use RangeAccess instead of FLYSUtils.
diff -r ba4d7f153890 -r aae2b7492c1e 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 13:04:54 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java Wed Jan 23 13:05:36 2013 +0100
@@ -234,8 +234,8 @@
return error(new WQKms[0], "no.wst.for.selected.river");
}
-
- double [] range = FLYSUtils.getKmRange(this);
+ RangeAccess rangeAccess = new RangeAccess(this, null);
+ double [] range = rangeAccess.getKmRange();
if (range == null) {
return error(new WQKms[0], "no.range.found");
}
@@ -689,7 +689,8 @@
return null;
}
- double [] range = FLYSUtils.getKmRange(this);
+ RangeAccess rangeAccess = new RangeAccess(this, null);
+ double [] range = rangeAccess.getKmRange();
if (range == null) {
logger.warn("no ranges found");
return null;
@@ -860,7 +861,8 @@
*/
public double[] getKms() {
if (isRange()) {
- double[] distance = FLYSUtils.getKmRange(this);
+ RangeAccess rangeAccess = new RangeAccess(this, null);
+ double [] distance = rangeAccess.getKmRange();
return getKms(distance);
}
@@ -874,7 +876,8 @@
if (!isRange()) {
return null;
}
- double [] fromTo = FLYSUtils.getKmRange(this);
+ RangeAccess rangeAccess = new RangeAccess(this, null);
+ double [] fromTo = rangeAccess.getKmRange();
if (fromTo == null) {
return null;
More information about the Dive4elements-commits
mailing list