changeset 4854:c53b3fdc9821

FloodMapState: Updated to use RangeAccess instead of FLYSUtils.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 23 Jan 2013 13:00:15 +0100
parents a0949259181e
children 96ea983b5c45
files flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java	Wed Jan 23 12:58:12 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java	Wed Jan 23 13:00:15 2013 +0100
@@ -11,6 +11,7 @@
 import de.intevation.artifacts.CallMeta;
 import de.intevation.artifacts.GlobalContext;
 import de.intevation.artifacts.common.utils.FileTools;
+import de.intevation.flys.artifacts.access.RangeAccess;
 import de.intevation.flys.artifacts.FLYSArtifact;
 import de.intevation.flys.artifacts.context.FLYSContext;
 import de.intevation.flys.artifacts.model.CalculationMessage;
@@ -327,7 +328,8 @@
 
 
     protected void setRange(FLYSArtifact artifact, WSPLGENJob job) {
-        double[] range = FLYSUtils.getKmRange(artifact);
+        RangeAccess rangeAccess = new RangeAccess(artifact, null);
+        double[] range = rangeAccess.getKmRange();
 
         job.setStart(range[0]);
         job.setEnd(range[1]);

http://dive4elements.wald.intevation.org