comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepthminmax/FlowDepthMinMaxState.java @ 8980:b194fa64506a

SINFO - show results themes according to spec, either raw data or floating mean values. Some improvements to error handling and handling of empty results.
author gernotbelger
date Thu, 05 Apr 2018 18:30:34 +0200
parents b0aeed4c97c1
children 0adc6d04de95
comparison
equal deleted inserted replaced
8979:951a4af24a09 8980:b194fa64506a
80 for (int index = 0; index < resultList.size(); index++) { 80 for (int index = 0; index < resultList.size(); index++) {
81 81
82 final FlowDepthMinMaxCalculationResult result = resultList.get(index); 82 final FlowDepthMinMaxCalculationResult result = resultList.get(index);
83 83
84 /* filtered (zoom dependent mean) flow depth */ 84 /* filtered (zoom dependent mean) flow depth */
85 if (result.hasMin()) 85 if (result.hasMin()) {
86 facets.add(FlowDepthProcessor.createFlowDepthMinFacet(context, hash, this.id, result, index)); 86 facets.add(FlowDepthProcessor.createFlowDepthMinFilteredFacet(context, hash, this.id, result, index));
87 facets.add(FlowDepthProcessor.createFlowDepthMinRawFacet(context, hash, this.id, result, index));
88 }
87 89
88 if (result.hasMax()) 90 if (result.hasMax()) {
89 facets.add(FlowDepthProcessor.createFlowDepthMaxFacet(context, hash, this.id, result, index)); 91 facets.add(FlowDepthProcessor.createFlowDepthMaxFilteredFacet(context, hash, this.id, result, index));
92 facets.add(FlowDepthProcessor.createFlowDepthMaxRawFacet(context, hash, this.id, result, index));
93 }
90 } 94 }
91 95
92 if (!resultList.isEmpty()) { 96 if (!resultList.isEmpty()) {
93 facets.add(new DataFacet(FacetTypes.CSV, "CSV data", ComputeType.ADVANCE, hash, this.id)); 97 facets.add(new DataFacet(FacetTypes.CSV, "CSV data", ComputeType.ADVANCE, hash, this.id));
94 facets.add(new DataFacet(FacetTypes.PDF, "PDF data", ComputeType.ADVANCE, hash, this.id)); 98 facets.add(new DataFacet(FacetTypes.PDF, "PDF data", ComputeType.ADVANCE, hash, this.id));

http://dive4elements.wald.intevation.org