comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthCalculationResult.java @ 9318:7b2b086e45f0

collision pdf details, ResultType refactoring, bezugswst result
author gernotbelger
date Fri, 27 Jul 2018 10:11:23 +0200
parents 740d65e4aa14
children 0c8f170945d7
comparison
equal deleted inserted replaced
9317:61b5de0b673b 9318:7b2b086e45f0
68 header.add(exportContextCSV.msgUnitCSV(SInfoResultType.tkh)); 68 header.add(exportContextCSV.msgUnitCSV(SInfoResultType.tkh));
69 } 69 }
70 70
71 header.add(exportContextCSV.msgUnitCSV(SInfoResultType.waterlevel, river.getWstUnit())); 71 header.add(exportContextCSV.msgUnitCSV(SInfoResultType.waterlevel, river.getWstUnit()));
72 header.add(exportContextCSV.msgUnitCSV(SInfoResultType.discharge)); 72 header.add(exportContextCSV.msgUnitCSV(SInfoResultType.discharge));
73 header.add(exportContextCSV.formatCsvHeader(SInfoResultType.waterlevelLabel)); 73 header.add(exportContextCSV.formatCsvHeader(GeneralResultType.waterlevelLabel));
74 header.add(exportContextCSV.formatCsvHeader(SInfoResultType.gaugeLabel)); 74 header.add(exportContextCSV.formatCsvHeader(GeneralResultType.gaugeLabel));
75 header.add(exportContextCSV.formatCsvHeader(SInfoResultType.meanBedHeight)); 75 header.add(exportContextCSV.formatCsvHeader(SInfoResultType.meanBedHeight));
76 header.add(exportContextCSV.formatCsvHeader(SInfoResultType.soundingLabel)); 76 header.add(exportContextCSV.formatCsvHeader(SInfoResultType.soundingLabel));
77 header.add(exportContextCSV.formatCsvHeader(GeneralResultType.location)); 77 header.add(exportContextCSV.formatCsvHeader(GeneralResultType.location));
78 78
79 exportContextCSV.writeCSVLine(header.toArray(new String[header.size()])); 79 exportContextCSV.writeCSVLine(header.toArray(new String[header.size()]));
117 exportContextPDF.addJRMetadata(source, "flowdepth_header", SInfoResultType.flowdepth); 117 exportContextPDF.addJRMetadata(source, "flowdepth_header", SInfoResultType.flowdepth);
118 exportContextPDF.addJRMetadata(source, "flowdepth_tkh_header", SInfoResultType.flowdepthtkh); 118 exportContextPDF.addJRMetadata(source, "flowdepth_tkh_header", SInfoResultType.flowdepthtkh);
119 exportContextPDF.addJRMetadata(source, "tkh_header", SInfoResultType.tkh); 119 exportContextPDF.addJRMetadata(source, "tkh_header", SInfoResultType.tkh);
120 exportContextPDF.addJRMetadata(source, "waterlevel_header", SInfoResultType.waterlevel); 120 exportContextPDF.addJRMetadata(source, "waterlevel_header", SInfoResultType.waterlevel);
121 exportContextPDF.addJRMetadata(source, "discharge_header", SInfoResultType.discharge); 121 exportContextPDF.addJRMetadata(source, "discharge_header", SInfoResultType.discharge);
122 exportContextPDF.addJRMetadata(source, "waterlevel_name_header", SInfoResultType.waterlevelLabel); 122 exportContextPDF.addJRMetadata(source, "waterlevel_name_header", GeneralResultType.waterlevelLabel);
123 exportContextPDF.addJRMetadata(source, "gauge_header", SInfoResultType.gaugeLabel); 123 exportContextPDF.addJRMetadata(source, "gauge_header", GeneralResultType.gaugeLabel);
124 exportContextPDF.addJRMetadata(source, "bedheight_header", SInfoResultType.meanBedHeight); 124 exportContextPDF.addJRMetadata(source, "bedheight_header", SInfoResultType.meanBedHeight);
125 exportContextPDF.addJRMetadata(source, "sounding_name_header", SInfoResultType.soundingLabel); 125 exportContextPDF.addJRMetadata(source, "sounding_name_header", SInfoResultType.soundingLabel);
126 exportContextPDF.addJRMetadata(source, "location_header", GeneralResultType.location); 126 exportContextPDF.addJRMetadata(source, "location_header", GeneralResultType.location);
127 } 127 }
128 128
139 lines.add(exportContext.formatRowValue(row, SInfoResultType.tkh)); 139 lines.add(exportContext.formatRowValue(row, SInfoResultType.tkh));
140 } 140 }
141 141
142 lines.add(exportContext.formatRowValue(row, SInfoResultType.waterlevel)); 142 lines.add(exportContext.formatRowValue(row, SInfoResultType.waterlevel));
143 lines.add(exportContext.formatRowValue(row, SInfoResultType.discharge)); 143 lines.add(exportContext.formatRowValue(row, SInfoResultType.discharge));
144 lines.add(exportContext.formatRowValue(row, SInfoResultType.waterlevelLabel)); 144 lines.add(exportContext.formatRowValue(row, GeneralResultType.waterlevelLabel));
145 lines.add(exportContext.formatRowValue(row, SInfoResultType.gaugeLabel)); 145 lines.add(exportContext.formatRowValue(row, GeneralResultType.gaugeLabel));
146 lines.add(exportContext.formatRowValue(row, SInfoResultType.meanBedHeight)); 146 lines.add(exportContext.formatRowValue(row, SInfoResultType.meanBedHeight));
147 lines.add(exportContext.formatRowValue(row, SInfoResultType.soundingLabel)); 147 lines.add(exportContext.formatRowValue(row, SInfoResultType.soundingLabel));
148 lines.add(exportContext.formatRowValue(row, GeneralResultType.location)); 148 lines.add(exportContext.formatRowValue(row, GeneralResultType.location));
149 149
150 return lines.toArray(new String[lines.size()]); 150 return lines.toArray(new String[lines.size()]);

http://dive4elements.wald.intevation.org