Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/WDifferencesExporter.java @ 1705:2c643a643026
Addressed 'wrong label' issue of wdiff csv-export.
flys-artifacts/trunk@2949 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 12 Oct 2011 11:01:41 +0000 |
parents | 9bdf738abbad |
children | 65dac9cf6ff5 |
comparison
equal
deleted
inserted
replaced
1704:e8627d1e2db6 | 1705:2c643a643026 |
---|---|
26 | 26 |
27 /** The logger used in this exporter. */ | 27 /** The logger used in this exporter. */ |
28 private static Logger logger = Logger.getLogger(WDifferencesExporter.class); | 28 private static Logger logger = Logger.getLogger(WDifferencesExporter.class); |
29 | 29 |
30 | 30 |
31 public static final String CSV_KM_HEADER = | 31 public static final String WDIFF_CSV_KM_HEADER = |
32 "export.w_differences.csv.header.km"; | 32 "export.w_differences.csv.header.km"; |
33 | 33 |
34 public static final String CSV_W_HEADER = | 34 public static final String WDIFF_CSV_W_HEADER = |
35 "export.w_differences.csv.header.w"; | 35 "export.w_differences.csv.header.w"; |
36 | 36 |
37 public static final String DEFAULT_CSV_KM_HEADER = "Fluss-Km"; | 37 public static final String WDIFF_DEFAULT_CSV_KM_HEADER = "Fluss-Km"; |
38 public static final String DEFAULT_CSV_W_HEADER = "W [NN + m]"; | 38 public static final String WDIFF_DEFAULT_CSV_W_HEADER = "m"; |
39 | 39 |
40 | 40 |
41 /** The storage that contains all WKms objects for the different facets. */ | 41 /** The storage that contains all WKms objects for the different facets. */ |
42 protected List<WKms[]> data; | 42 protected List<WKms[]> data; |
43 | 43 |
114 */ | 114 */ |
115 protected void writeCSVHeader(CSVWriter writer) { | 115 protected void writeCSVHeader(CSVWriter writer) { |
116 logger.info("WDifferencesExporter.writeCSVHeader"); | 116 logger.info("WDifferencesExporter.writeCSVHeader"); |
117 | 117 |
118 writer.writeNext(new String[] { | 118 writer.writeNext(new String[] { |
119 msg(CSV_KM_HEADER, DEFAULT_CSV_KM_HEADER), | 119 msg(WDIFF_CSV_KM_HEADER, WDIFF_DEFAULT_CSV_KM_HEADER), |
120 msg(CSV_W_HEADER, DEFAULT_CSV_W_HEADER) | 120 msg(WDIFF_CSV_W_HEADER, WDIFF_DEFAULT_CSV_W_HEADER) |
121 }); | 121 }); |
122 } | 122 } |
123 | 123 |
124 | 124 |
125 protected void wKms2CSV(CSVWriter writer, WKms wkms) { | 125 protected void wKms2CSV(CSVWriter writer, WKms wkms) { |