changeset 4845:88f5ab736448

MainValuesArtifact: Use RangeAccess.getLocations instead of FLYSUtils.getLocations.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 23 Jan 2013 10:39:44 +0100
parents 787733641877
children 298d540f7b70
files flys-artifacts/src/main/java/de/intevation/flys/artifacts/MainValuesArtifact.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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,

http://dive4elements.wald.intevation.org