Mercurial > dive4elements > river
changeset 4861:aae2b7492c1e
WINFOArtifact: Updated to use RangeAccess instead of FLYSUtils.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 23 Jan 2013 13:05:36 +0100 |
parents | ba4d7f153890 |
children | b99656db18de |
files | flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java |
diffstat | 1 files changed, 8 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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;