Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/ATExporter.java @ 4849:f86c8d75fd85
ATExporter: Use RangeAccess.getLocations instead of FLYSUtils.getLocations.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 23 Jan 2013 10:43:27 +0100 |
parents | 118fe1cc8cc8 |
children | b878dce3a671 |
comparison
equal
deleted
inserted
replaced
4848:7887112c37cc | 4849:f86c8d75fd85 |
---|---|
18 | 18 |
19 import de.intevation.flys.artifacts.model.WQ; | 19 import de.intevation.flys.artifacts.model.WQ; |
20 import de.intevation.flys.collections.FLYSArtifactCollection; | 20 import de.intevation.flys.collections.FLYSArtifactCollection; |
21 | 21 |
22 import de.intevation.flys.utils.FLYSUtils; | 22 import de.intevation.flys.utils.FLYSUtils; |
23 | 23 import de.intevation.flys.artifacts.access.RangeAccess; |
24 | 24 |
25 public class ATExporter | 25 public class ATExporter |
26 implements OutGenerator | 26 implements OutGenerator |
27 { | 27 { |
28 private static Logger logger = Logger.getLogger(ATExporter.class); | 28 private static Logger logger = Logger.getLogger(ATExporter.class); |
82 logger.error("creating ATWriter failed", iae); | 82 logger.error("creating ATWriter failed", iae); |
83 throw new IOException(iae); | 83 throw new IOException(iae); |
84 } | 84 } |
85 | 85 |
86 String river = FLYSUtils.getRiver(master).getName(); | 86 String river = FLYSUtils.getRiver(master).getName(); |
87 double[] kms = FLYSUtils.getLocations(master); | 87 RangeAccess rangeAccess = new RangeAccess(master, context); |
88 double[] kms = rangeAccess.getLocations(); | |
88 | 89 |
89 at.write( | 90 at.write( |
90 new OutputStreamWriter(out, DEFAULT_ENCODING), | 91 new OutputStreamWriter(out, DEFAULT_ENCODING), |
91 context.getMeta(), | 92 context.getMeta(), |
92 river, | 93 river, |