Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WaterlevelState.java @ 1803:51e59f221333
Minor preparations for WINFO/CrossSection to handle multiple cross-sections.
flys-artifacts/trunk@3128 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 01 Nov 2011 12:23:59 +0000 |
parents | 26d7077e42d2 |
children | 27bb2e24f7f8 |
comparison
equal
deleted
inserted
replaced
1802:26d7077e42d2 | 1803:51e59f221333 |
---|---|
83 Facet csv = new DataFacet( | 83 Facet csv = new DataFacet( |
84 CSV, "CSV data", ComputeType.ADVANCE, hash, id); | 84 CSV, "CSV data", ComputeType.ADVANCE, hash, id); |
85 | 85 |
86 facets.add(wst); | 86 facets.add(wst); |
87 facets.add(csv); | 87 facets.add(csv); |
88 // Also register the CrossSectionFacet (added to respective out). | 88 // Also register the CrossSectionFacets. |
89 facets.add(new CrossSectionFacet(winfo.getCrossSectionName())); | 89 int idx = 0; |
90 for (String name: winfo.getCrossSectionNames()) { | |
91 facets.add(new CrossSectionFacet(idx++, name)); | |
92 } | |
90 } | 93 } |
91 | 94 |
92 if (res.getReport().hasProblems()) { | 95 if (res.getReport().hasProblems()) { |
93 facets.add(new ReportFacet(ComputeType.ADVANCE, hash, id)); | 96 facets.add(new ReportFacet(ComputeType.ADVANCE, hash, id)); |
94 } | 97 } |