Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/StaticWQKmsArtifact.java @ 7619:c5f7c798a0a4
Remove close-isOfficial-Handling in StaticWQKmsArtifact.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 29 Nov 2013 12:17:22 +0100 |
parents | 08527cc6341f |
children | 49a92f7e2017 |
comparison
equal
deleted
inserted
replaced
7618:9098499114e9 | 7619:c5f7c798a0a4 |
---|---|
57 public static final String STATIC_STATE_NAME = | 57 public static final String STATIC_STATE_NAME = |
58 "state.additional_wqkms.static"; | 58 "state.additional_wqkms.static"; |
59 | 59 |
60 private static final String NAME = "staticwqkms"; | 60 private static final String NAME = "staticwqkms"; |
61 | 61 |
62 private boolean official = false; | |
63 | |
64 static { | 62 static { |
65 // TODO: Move to configuration. | 63 // TODO: Move to configuration. |
66 FacetActivity.Registry.getInstance().register( | 64 FacetActivity.Registry.getInstance().register( |
67 NAME, | 65 NAME, |
68 new FacetActivity() { | 66 new FacetActivity() { |
111 addStringData("ids", code); | 109 addStringData("ids", code); |
112 if (code != null) { | 110 if (code != null) { |
113 String [] parts = code.split("-"); | 111 String [] parts = code.split("-"); |
114 | 112 |
115 if (parts.length >= 1) { | 113 if (parts.length >= 1) { |
116 official = parts[0].toLowerCase().equals("official"); | 114 boolean official = parts[0].toLowerCase().startsWith("official"); |
115 addStringData("official", official ? "1" : null); | |
117 } | 116 } |
118 | 117 |
119 if (parts.length >= 4) { | 118 if (parts.length >= 4) { |
120 int col = Integer.parseInt(parts[2]); | 119 int col = Integer.parseInt(parts[2]); |
121 int wst = Integer.parseInt(parts[3]); | 120 int wst = Integer.parseInt(parts[3]); |
230 } | 229 } |
231 | 230 |
232 return Lines.createWaterLines(points, wAtKm); | 231 return Lines.createWaterLines(points, wAtKm); |
233 } | 232 } |
234 // TODO implement deepCopy. | 233 // TODO implement deepCopy. |
235 | |
236 public boolean isOfficial() | |
237 { | |
238 return official; | |
239 } | |
240 } | 234 } |
241 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : | 235 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : |