[Dive4elements-commits] [PATCH 01 of 19] MainValuesArtifact: Use RangeAccess.getLocations instead of FLYSUtils.getLocations

Wald Commits scm-commit at wald.intevation.org
Thu Jan 24 14:14:13 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1358933984 -3600
# Node ID 88f5ab736448356e5ce3ebf8c219b2d19a556601
# Parent  7877336418776f5043fee5be246fcb6346a155dd
MainValuesArtifact: Use RangeAccess.getLocations instead of FLYSUtils.getLocations.

diff -r 787733641877 -r 88f5ab736448 flys-artifacts/src/main/java/de/intevation/flys/artifacts/MainValuesArtifact.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/MainValuesArtifact.java	Wed Jan 23 18:15:04 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/MainValuesArtifact.java	Wed Jan 23 10:39:44 2013 +0100
@@ -21,6 +21,7 @@
 import de.intevation.flys.model.MainValue;
 import de.intevation.flys.model.River;
 
+import de.intevation.flys.artifacts.access.RangeAccess;
 import de.intevation.flys.artifacts.model.Calculation;
 import de.intevation.flys.artifacts.model.FacetTypes;
 import de.intevation.flys.artifacts.model.MainValuesQFacet;
@@ -173,7 +174,8 @@
     protected void initialize(Artifact artifact, Object context, CallMeta meta) {
         logger.debug("MainValuesArtifact.initialize");
         FLYSArtifact winfo = (FLYSArtifact) artifact;
-        double [] locations = FLYSUtils.getLocations(winfo);
+        RangeAccess rangeAccess = new RangeAccess(this, null);
+        double [] locations = rangeAccess.getLocations();
         if (locations != null) {
             double location = locations[0];
             addData("location", new DefaultStateData("location", null, null,


More information about the Dive4elements-commits mailing list