Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/ReferenceCurveExporter.java @ 5865:73da40528cf2
River artifacts: Renamed FLYSUtils to RiverUtils.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sun, 28 Apr 2013 15:09:31 +0200 |
parents | 4897a58c8746 |
children | 59ff03ff48f1 |
comparison
equal
deleted
inserted
replaced
5864:f2e46a668fe6 | 5865:73da40528cf2 |
---|---|
22 import org.dive4elements.river.artifacts.model.WWQQ; | 22 import org.dive4elements.river.artifacts.model.WWQQ; |
23 import org.dive4elements.river.artifacts.model.WWQQJRDataSource; | 23 import org.dive4elements.river.artifacts.model.WWQQJRDataSource; |
24 | 24 |
25 import org.dive4elements.river.artifacts.resources.Resources; | 25 import org.dive4elements.river.artifacts.resources.Resources; |
26 | 26 |
27 import org.dive4elements.river.utils.FLYSUtils; | 27 import org.dive4elements.river.utils.RiverUtils; |
28 | 28 |
29 import java.io.IOException; | 29 import java.io.IOException; |
30 import java.io.OutputStream; | 30 import java.io.OutputStream; |
31 | 31 |
32 import java.text.DateFormat; | 32 import java.text.DateFormat; |
230 FLYSArtifact flys = (FLYSArtifact) master; | 230 FLYSArtifact flys = (FLYSArtifact) master; |
231 | 231 |
232 StepCSVWriter stepWriter = new StepCSVWriter(); | 232 StepCSVWriter stepWriter = new StepCSVWriter(); |
233 stepWriter.setCSVWriter(writer); | 233 stepWriter.setCSVWriter(writer); |
234 | 234 |
235 String startLocationDescription = FLYSUtils.getLocationDescription( | 235 String startLocationDescription = RiverUtils.getLocationDescription( |
236 flys, ww.getStartKm()); | 236 flys, ww.getStartKm()); |
237 | 237 |
238 String endLocationDescription = FLYSUtils.getLocationDescription( | 238 String endLocationDescription = RiverUtils.getLocationDescription( |
239 flys, ww.getEndKm()); | 239 flys, ww.getEndKm()); |
240 | 240 |
241 for (int i = 0; i < size; i ++) { | 241 for (int i = 0; i < size; i ++) { |
242 stepWriter.addNexts(kmf.format(ww.getStartKm())); | 242 stepWriter.addNexts(kmf.format(ww.getStartKm())); |
243 stepWriter.addNext(wf.format(ww.getW1(i))); | 243 stepWriter.addNext(wf.format(ww.getW1(i))); |
320 protected void addMetaData(WWQQJRDataSource source) { | 320 protected void addMetaData(WWQQJRDataSource source) { |
321 CallMeta meta = context.getMeta(); | 321 CallMeta meta = context.getMeta(); |
322 | 322 |
323 WINFOArtifact flys = (WINFOArtifact) master; | 323 WINFOArtifact flys = (WINFOArtifact) master; |
324 | 324 |
325 source.addMetaData ("river", FLYSUtils.getRivername(flys)); | 325 source.addMetaData ("river", RiverUtils.getRivername(flys)); |
326 | 326 |
327 Locale locale = Resources.getLocale(meta); | 327 Locale locale = Resources.getLocale(meta); |
328 DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, locale); | 328 DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, locale); |
329 | 329 |
330 source.addMetaData("date", df.format(new Date())); | 330 source.addMetaData("date", df.format(new Date())); |
343 | 343 |
344 int size = ww.size(); | 344 int size = ww.size(); |
345 | 345 |
346 FLYSArtifact flys = (FLYSArtifact) master; | 346 FLYSArtifact flys = (FLYSArtifact) master; |
347 | 347 |
348 String startLocationDescription = FLYSUtils.getLocationDescription( | 348 String startLocationDescription = RiverUtils.getLocationDescription( |
349 flys, ww.getStartKm()); | 349 flys, ww.getStartKm()); |
350 | 350 |
351 String endLocationDescription = FLYSUtils.getLocationDescription( | 351 String endLocationDescription = RiverUtils.getLocationDescription( |
352 flys, ww.getEndKm()); | 352 flys, ww.getEndKm()); |
353 | 353 |
354 for (int i = 0; i < size; i ++) { | 354 for (int i = 0; i < size; i ++) { |
355 String start = "-"; | 355 String start = "-"; |
356 String end = "-"; | 356 String end = "-"; |