changeset 1914:e20a47be6207

Differentiate between wsts whose name starts with 'height' and all others. flys-artifacts/trunk@3274 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 16 Nov 2011 15:48:01 +0000
parents 4a2dadc5cf0b
children 6b7557ffe2f8
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/WQKmsInterpolArtifact.java
diffstat 2 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Wed Nov 16 15:46:11 2011 +0000
+++ b/flys-artifacts/ChangeLog	Wed Nov 16 15:48:01 2011 +0000
@@ -1,3 +1,9 @@
+2011-11-16  Felix Wolfsteller <felix.wolfsteller@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/WQKmsInterpolArtifact.java:
+	  Set Facet type (name) based on static datas name (special case
+	  everything starting with "height").
+
 2011-11-16  Felix Wolfsteller <felix.wolfsteller@intevation.de>
 
 	* doc/conf/artifacts/winfo.xml: Extended compatibility matrices.
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WQKmsInterpolArtifact.java	Wed Nov 16 15:46:11 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WQKmsInterpolArtifact.java	Wed Nov 16 15:48:01 2011 +0000
@@ -105,7 +105,11 @@
                 String wkmsName = (col > 0)
                                 ? WKmsFactory.getWKmsName(col, wst)
                                 : WKmsFactory.getWKmsName(wst);
-                Facet facet = new WQFacet(
+                String name = (parts[0].startsWith("height"))
+                    ? STATIC_WQ_ANNOTATIONS
+                    : STATIC_WQ;
+
+                Facet facet = new WQFacet(name,
                     Resources.getMsg(
                         callMeta,
                         wkmsName,

http://dive4elements.wald.intevation.org