Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/ComputedDischargeCurveExporter.java @ 5420:0bb57e72b8ea
Fix flys/issue1206 (reference system in discharge curve).
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 26 Mar 2013 11:20:36 +0100 |
parents | d9ef525bff08 |
children | 420c553bc86d |
comparison
equal
deleted
inserted
replaced
5419:0548b70e7b39 | 5420:0bb57e72b8ea |
---|---|
117 | 117 |
118 | 118 |
119 protected void writeCSVHeader(CSVWriter writer) { | 119 protected void writeCSVHeader(CSVWriter writer) { |
120 logger.debug("ComputedDischargeCurveExporter.writeCSVHeader"); | 120 logger.debug("ComputedDischargeCurveExporter.writeCSVHeader"); |
121 | 121 |
122 // TODO i18n with wst unit from river. | |
123 String unit = FLYSUtils.getRiver((FLYSArtifact) master).getWstUnit().getName(); | |
124 | |
122 writer.writeNext(new String[] { | 125 writer.writeNext(new String[] { |
123 msg(CSV_W_HEADER, DEFAULT_CSV_W_HEADER), | 126 msg(CSV_W_HEADER, DEFAULT_CSV_W_HEADER, new Object[] { unit }), |
124 msg(CSV_Q_HEADER, DEFAULT_CSV_Q_HEADER) | 127 msg(CSV_Q_HEADER, DEFAULT_CSV_Q_HEADER) |
125 }); | 128 }); |
126 } | 129 } |
127 | 130 |
128 | 131 |