[Dive4elements-commits] [PATCH 10 of 19] FloodMapState: Updated to use RangeAccess instead of FLYSUtils
Wald Commits
scm-commit at wald.intevation.org
Thu Jan 24 14:14:22 CET 2013
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1358942415 -3600
# Node ID c53b3fdc9821138230ae77be86766e938f7c58de
# Parent a0949259181e46382604493aa486450fa30e6a9d
FloodMapState: Updated to use RangeAccess instead of FLYSUtils.
diff -r a0949259181e -r c53b3fdc9821 flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java
--- 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]);
More information about the Dive4elements-commits
mailing list