[Dive4elements-commits] [PATCH 05 of 19] ATExporter: Use RangeAccess.getLocations instead of FLYSUtils.getLocations

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


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1358934207 -3600
# Node ID f86c8d75fd85c5bdaf959da5cc6e586c7d474ece
# Parent  7887112c37ccd6ee83c237c14c078e9979defcdf
ATExporter: Use RangeAccess.getLocations instead of FLYSUtils.getLocations.

diff -r 7887112c37cc -r f86c8d75fd85 flys-artifacts/src/main/java/de/intevation/flys/exports/ATExporter.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ATExporter.java	Wed Jan 23 10:42:50 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ATExporter.java	Wed Jan 23 10:43:27 2013 +0100
@@ -20,7 +20,7 @@
 import de.intevation.flys.collections.FLYSArtifactCollection;
 
 import de.intevation.flys.utils.FLYSUtils;
-
+import de.intevation.flys.artifacts.access.RangeAccess;
 
 public class ATExporter
 implements   OutGenerator
@@ -84,7 +84,8 @@
         }
 
         String   river = FLYSUtils.getRiver(master).getName();
-        double[] kms   = FLYSUtils.getLocations(master);
+        RangeAccess rangeAccess = new RangeAccess(master, context);
+        double[] kms = rangeAccess.getLocations();
 
         at.write(
             new OutputStreamWriter(out, DEFAULT_ENCODING),


More information about the Dive4elements-commits mailing list