Mercurial > dive4elements > river
changeset 4846:298d540f7b70
WINFOArtifact: Use RangeAccess.getLocations instead of FLYSUtils.getLocations.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 23 Jan 2013 10:40:35 +0100 |
parents | 88f5ab736448 |
children | 37112235a946 |
files | flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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");