comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepthminmax/FlowDepthMinMaxCalculationResult.java @ 9312:740d65e4aa14

Q [m³/s] one message
author gernotbelger
date Thu, 26 Jul 2018 15:54:20 +0200
parents a4121ec450d6
children 7b2b086e45f0
comparison
equal deleted inserted replaced
9311:7c7f73e5e01e 9312:740d65e4aa14
59 header.add(exportContextCSV.msgUnitCSV(SInfoResultType.discharge)); 59 header.add(exportContextCSV.msgUnitCSV(SInfoResultType.discharge));
60 header.add(exportContextCSV.formatCsvHeader(SInfoResultType.waterlevelLabel)); 60 header.add(exportContextCSV.formatCsvHeader(SInfoResultType.waterlevelLabel));
61 header.add(exportContextCSV.formatCsvHeader(SInfoResultType.gaugeLabel)); 61 header.add(exportContextCSV.formatCsvHeader(SInfoResultType.gaugeLabel));
62 header.add(exportContextCSV.msgUnitCSV(SInfoResultType.meanBedHeight, river.getWstUnit())); 62 header.add(exportContextCSV.msgUnitCSV(SInfoResultType.meanBedHeight, river.getWstUnit()));
63 header.add(exportContextCSV.formatCsvHeader(SInfoResultType.soundingLabel)); 63 header.add(exportContextCSV.formatCsvHeader(SInfoResultType.soundingLabel));
64 header.add(exportContextCSV.formatCsvHeader(SInfoResultType.location)); 64 header.add(exportContextCSV.formatCsvHeader(GeneralResultType.location));
65 65
66 exportContextCSV.writeCSVLine(header.toArray(new String[header.size()])); 66 exportContextCSV.writeCSVLine(header.toArray(new String[header.size()]));
67 67
68 } 68 }
69 69
106 exportContextPDF.addJRMetadata(source, "discharge_header", SInfoResultType.discharge); 106 exportContextPDF.addJRMetadata(source, "discharge_header", SInfoResultType.discharge);
107 exportContextPDF.addJRMetadata(source, "waterlevel_name_header", SInfoResultType.waterlevelLabel); 107 exportContextPDF.addJRMetadata(source, "waterlevel_name_header", SInfoResultType.waterlevelLabel);
108 exportContextPDF.addJRMetadata(source, "gauge_header", SInfoResultType.gaugeLabel); 108 exportContextPDF.addJRMetadata(source, "gauge_header", SInfoResultType.gaugeLabel);
109 exportContextPDF.addJRMetadata(source, "bedheight_header", SInfoResultType.meanBedHeight); 109 exportContextPDF.addJRMetadata(source, "bedheight_header", SInfoResultType.meanBedHeight);
110 exportContextPDF.addJRMetadata(source, "sounding_name_header", SInfoResultType.soundingLabel); 110 exportContextPDF.addJRMetadata(source, "sounding_name_header", SInfoResultType.soundingLabel);
111 exportContextPDF.addJRMetadata(source, "location_header", SInfoResultType.location); 111 exportContextPDF.addJRMetadata(source, "location_header", GeneralResultType.location);
112 112
113 } 113 }
114 114
115 protected String[] formatRow(final IExportContext exportContextCSV, final ResultRow row) { 115 protected String[] formatRow(final IExportContext exportContextCSV, final ResultRow row) {
116 116
130 lines.add(exportContextCSV.formatRowValue(row, SInfoResultType.discharge)); 130 lines.add(exportContextCSV.formatRowValue(row, SInfoResultType.discharge));
131 lines.add(exportContextCSV.formatRowValue(row, SInfoResultType.waterlevelLabel)); 131 lines.add(exportContextCSV.formatRowValue(row, SInfoResultType.waterlevelLabel));
132 lines.add(exportContextCSV.formatRowValue(row, SInfoResultType.gaugeLabel)); 132 lines.add(exportContextCSV.formatRowValue(row, SInfoResultType.gaugeLabel));
133 lines.add(exportContextCSV.formatRowValue(row, SInfoResultType.meanBedHeight)); 133 lines.add(exportContextCSV.formatRowValue(row, SInfoResultType.meanBedHeight));
134 lines.add(exportContextCSV.formatRowValue(row, SInfoResultType.soundingLabel)); 134 lines.add(exportContextCSV.formatRowValue(row, SInfoResultType.soundingLabel));
135 lines.add(exportContextCSV.formatRowValue(row, SInfoResultType.location)); 135 lines.add(exportContextCSV.formatRowValue(row, GeneralResultType.location));
136 136
137 return lines.toArray(new String[lines.size()]); 137 return lines.toArray(new String[lines.size()]);
138 } 138 }
139 } 139 }

http://dive4elements.wald.intevation.org