diff 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
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WaterlevelState.java	Tue Nov 01 10:40:05 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WaterlevelState.java	Tue Nov 01 12:23:59 2011 +0000
@@ -85,8 +85,11 @@
 
             facets.add(wst);
             facets.add(csv);
-            // Also register the CrossSectionFacet (added to respective out).
-            facets.add(new CrossSectionFacet(winfo.getCrossSectionName()));
+            // Also register the CrossSectionFacets.
+            int idx = 0;
+            for (String name: winfo.getCrossSectionNames()) {
+                facets.add(new CrossSectionFacet(idx++, name));
+            }
         }
 
         if (res.getReport().hasProblems()) {

http://dive4elements.wald.intevation.org