[Dive4elements-commits] [PATCH 08 of 10] ExtremeCurveFacet: Moved allocation of Access object to where its needed
Wald Commits
scm-commit at wald.intevation.org
Wed Oct 31 14:09:08 CET 2012
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1351688918 -3600
# Node ID 88064d351bccbe5bf9eb510fd7dfbd899725fe61
# Parent 0a7594c0cbc2bd2f315a077b38318eea757f6483
ExtremeCurveFacet: Moved allocation of Access object to where its needed.
diff -r 0a7594c0cbc2 -r 88064d351bcc flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/extreme/ExtremeCurveFacet.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/extreme/ExtremeCurveFacet.java Wed Oct 31 14:02:00 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/extreme/ExtremeCurveFacet.java Wed Oct 31 14:08:38 2012 +0100
@@ -61,8 +61,6 @@
logger.debug("ExtremeCurveFacet.getData");
if (artifact instanceof FLYSArtifact) {
FLYSArtifact flys = (FLYSArtifact)artifact;
- ExtremeAccess access = new ExtremeAccess(flys);
-
CalculationResult res =
(CalculationResult) flys.compute(context,
ComputeType.ADVANCE,
@@ -80,6 +78,8 @@
logger.debug("A curve at km = " + currentKm);
Curve c = curveEntry.getValue();
// Find segment in which the curr. km is located.
+ ExtremeAccess access = new ExtremeAccess(flys);
+
double[] ds = access.getValuesForRange(currentKm);
if (ds != null) {
More information about the Dive4elements-commits
mailing list