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

collision pdf details, ResultType refactoring, bezugswst result
author gernotbelger
date Fri, 27 Jul 2018 10:11:23 +0200
parents 740d65e4aa14
children 1d4262a68f1f
comparison
equal deleted inserted replaced
9317:61b5de0b673b 9318:7b2b086e45f0
55 header.add(exportContextCSV.formatCsvHeader(GeneralResultType.station)); 55 header.add(exportContextCSV.formatCsvHeader(GeneralResultType.station));
56 header.add(exportContextCSV.msgUnitCSV(SInfoResultType.flowdepthmin)); 56 header.add(exportContextCSV.msgUnitCSV(SInfoResultType.flowdepthmin));
57 header.add(exportContextCSV.msgUnitCSV(SInfoResultType.flowdepthmax)); 57 header.add(exportContextCSV.msgUnitCSV(SInfoResultType.flowdepthmax));
58 header.add(exportContextCSV.msgUnitCSV(SInfoResultType.waterlevel, river.getWstUnit())); 58 header.add(exportContextCSV.msgUnitCSV(SInfoResultType.waterlevel, river.getWstUnit()));
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(GeneralResultType.waterlevelLabel));
61 header.add(exportContextCSV.formatCsvHeader(SInfoResultType.gaugeLabel)); 61 header.add(exportContextCSV.formatCsvHeader(GeneralResultType.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(GeneralResultType.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()]));
102 exportContextPDF.addJRMetadata(source, "station_header", GeneralResultType.station); 102 exportContextPDF.addJRMetadata(source, "station_header", GeneralResultType.station);
103 exportContextPDF.addJRMetadata(source, "flowdepthmin_header", SInfoResultType.flowdepthmin); 103 exportContextPDF.addJRMetadata(source, "flowdepthmin_header", SInfoResultType.flowdepthmin);
104 exportContextPDF.addJRMetadata(source, "flowdepthmax_header", SInfoResultType.flowdepthmax); 104 exportContextPDF.addJRMetadata(source, "flowdepthmax_header", SInfoResultType.flowdepthmax);
105 exportContextPDF.addJRMetadata(source, "waterlevel_header", SInfoResultType.waterlevel); 105 exportContextPDF.addJRMetadata(source, "waterlevel_header", SInfoResultType.waterlevel);
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", GeneralResultType.waterlevelLabel);
108 exportContextPDF.addJRMetadata(source, "gauge_header", SInfoResultType.gaugeLabel); 108 exportContextPDF.addJRMetadata(source, "gauge_header", GeneralResultType.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", GeneralResultType.location); 111 exportContextPDF.addJRMetadata(source, "location_header", GeneralResultType.location);
112 112
113 } 113 }
126 // if (result == null || result.getMaxSounding() != null) 126 // if (result == null || result.getMaxSounding() != null)
127 lines.add(exportContextCSV.formatRowValue(row, SInfoResultType.flowdepthmax)); 127 lines.add(exportContextCSV.formatRowValue(row, SInfoResultType.flowdepthmax));
128 128
129 lines.add(exportContextCSV.formatRowValue(row, SInfoResultType.waterlevel)); 129 lines.add(exportContextCSV.formatRowValue(row, SInfoResultType.waterlevel));
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, GeneralResultType.waterlevelLabel));
132 lines.add(exportContextCSV.formatRowValue(row, SInfoResultType.gaugeLabel)); 132 lines.add(exportContextCSV.formatRowValue(row, GeneralResultType.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, GeneralResultType.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()]);

http://dive4elements.wald.intevation.org