Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/FloodMapState.java @ 7569:3cbf8bab1a0f
issue1020: Added pointers as comments in code.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 14 Nov 2013 06:44:11 +0100 |
parents | a56fe3bc6700 |
children | f603a53e45dc |
comparison
equal
deleted
inserted
replaced
7568:f01379dfeab4 | 7569:3cbf8bab1a0f |
---|---|
931 try { | 931 try { |
932 idx = Integer.parseInt(parts[2]); | 932 idx = Integer.parseInt(parts[2]); |
933 } | 933 } |
934 catch (NumberFormatException nfe) { /* do nothing */ } | 934 catch (NumberFormatException nfe) { /* do nothing */ } |
935 | 935 |
936 // issue1020: Other kinds of artifacts might calculate other stuff than | |
937 // WQKms or provide data in more static manner (shiver). | |
938 | |
936 D4EArtifact src = otherArtifact != null | 939 D4EArtifact src = otherArtifact != null |
937 ? RiverUtils.getArtifact(otherArtifact, cc) | 940 ? RiverUtils.getArtifact(otherArtifact, cc) |
938 : flys; | 941 : flys; |
939 | 942 |
940 logger.debug("Use waterlevel provided by Artifact: " + src.identifier()); | 943 logger.debug("Use waterlevel provided by Artifact: " + src.identifier()); |
982 if (writeWspTag) { | 985 if (writeWspTag) { |
983 job.setWspTag(data.getName()); | 986 job.setWspTag(data.getName()); |
984 writeWspTag = false; | 987 writeWspTag = false; |
985 } | 988 } |
986 | 989 |
990 // TODO issue1020: data might be something different than wqkms, | |
991 // abstract this here a little away. | |
987 for (int i = 0, num = data.size(); i < num; i++) { | 992 for (int i = 0, num = data.size(); i < num; i++) { |
988 data.get(i, buf); | 993 data.get(i, buf); |
989 writer.add(buf); | 994 writer.add(buf); |
990 } | 995 } |
991 | 996 |