changeset 1920:346044bd523d

Give flood* artifacts Facets the STATIC_WKMS_INTERPOL FacetType. flys-artifacts/trunk@3280 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 17 Nov 2011 09:16:20 +0000
parents 9bec7d2f8c35
children d99fdc234da1
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/WQKmsInterpolArtifact.java
diffstat 2 files changed, 17 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Thu Nov 17 09:14:42 2011 +0000
+++ b/flys-artifacts/ChangeLog	Thu Nov 17 09:16:20 2011 +0000
@@ -1,3 +1,10 @@
+2011-11-17  Felix Wolfsteller <felix.wolfsteller@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/WQKmsInterpolArtifact.java:
+	  Give Facet different name when its a flood*, so that it can be
+	  understood to be e.g. a flood-protection further down the processing
+	  line.
+
 2011-11-17  Felix Wolfsteller <felix.wolfsteller@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/model/WstValueTable.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WQKmsInterpolArtifact.java	Thu Nov 17 09:14:42 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WQKmsInterpolArtifact.java	Thu Nov 17 09:16:20 2011 +0000
@@ -105,9 +105,16 @@
                 String wkmsName = (col > 0)
                                 ? WKmsFactory.getWKmsName(col, wst)
                                 : WKmsFactory.getWKmsName(wst);
-                String name = (parts[0].startsWith("height"))
-                    ? STATIC_WQ_ANNOTATIONS
-                    : STATIC_WQ;
+                String name;
+                if (parts[0].startsWith("height")){
+                    name = STATIC_WQ_ANNOTATIONS;
+                }
+                else if (parts[0].startsWith("flood")) {
+                    name = STATIC_WKMS_INTERPOL;
+                }
+                else {
+                    name = STATIC_WQ;
+                }
 
                 Facet facet = new WQFacet(name,
                     Resources.getMsg(

http://dive4elements.wald.intevation.org