Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/fixings/FixLongitudinalReferenceFacet.java @ 3610:66f539df4e8b
Issue 716.
FixA: Spilt reference and analysis period themes into one theme for each event.
flys-artifacts/trunk@5239 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 23 Aug 2012 08:49:37 +0000 |
parents | e3c7a3228bc2 |
children | acfd48384835 |
comparison
equal
deleted
inserted
replaced
3609:a16837d73130 | 3610:66f539df4e8b |
---|---|
78 if (kmReference == null) { | 78 if (kmReference == null) { |
79 logger.warn("No references found."); | 79 logger.warn("No references found."); |
80 return null; | 80 return null; |
81 } | 81 } |
82 | 82 |
83 return kmReference; | 83 int qwdNdx = index & 255; |
84 KMIndex<QWD> resReference = | |
85 new KMIndex<QWD>(); | |
86 for (KMIndex.Entry<QWD[]> entry: kmReference) { | |
87 QWD[] qwds = entry.getValue(); | |
88 for(int i = 0; i < qwds.length; i++) { | |
89 if(qwds[i].getIndex() == qwdNdx) { | |
90 resReference.add(entry.getKm(), qwds[i]); | |
91 } | |
92 } | |
93 } | |
94 return resReference; | |
84 } | 95 } |
85 else { | 96 else { |
86 logger.warn("Artifact is no instance of FLYSArtifact."); | 97 logger.warn("Artifact is no instance of FLYSArtifact."); |
87 return null; | 98 return null; |
88 } | 99 } |