Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/WQKmsInterpolArtifact.java @ 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 | e20a47be6207 |
children | f07d64d5cbe1 |
comparison
equal
deleted
inserted
replaced
1919:9bec7d2f8c35 | 1920:346044bd523d |
---|---|
103 } | 103 } |
104 addStringData("wst_id", parts[3]); | 104 addStringData("wst_id", parts[3]); |
105 String wkmsName = (col > 0) | 105 String wkmsName = (col > 0) |
106 ? WKmsFactory.getWKmsName(col, wst) | 106 ? WKmsFactory.getWKmsName(col, wst) |
107 : WKmsFactory.getWKmsName(wst); | 107 : WKmsFactory.getWKmsName(wst); |
108 String name = (parts[0].startsWith("height")) | 108 String name; |
109 ? STATIC_WQ_ANNOTATIONS | 109 if (parts[0].startsWith("height")){ |
110 : STATIC_WQ; | 110 name = STATIC_WQ_ANNOTATIONS; |
111 } | |
112 else if (parts[0].startsWith("flood")) { | |
113 name = STATIC_WKMS_INTERPOL; | |
114 } | |
115 else { | |
116 name = STATIC_WQ; | |
117 } | |
111 | 118 |
112 Facet facet = new WQFacet(name, | 119 Facet facet = new WQFacet(name, |
113 Resources.getMsg( | 120 Resources.getMsg( |
114 callMeta, | 121 callMeta, |
115 wkmsName, | 122 wkmsName, |