comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/MainValuesWFacet.java @ 6695:5d071e1cb17c

issue1418: skip MainValues with NaN values.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 29 Jul 2013 15:02:22 +0200
parents 641f93a5fa9e
children f206f6049b2b
comparison
equal deleted inserted replaced
6694:14a18c4c8dea 6695:5d071e1cb17c
120 null, 120 null,
121 context); 121 context);
122 } 122 }
123 123
124 for (NamedDouble w: ws) { 124 for (NamedDouble w: ws) {
125 logger.debug("W Annotation at " + w.getValue() + " ("+w.getName()+")"+ wqdays);
126 if (Double.isNaN(w.getValue())) {
127 logger.warn("NaN MainValue " + w.getName());
128 continue;
129 }
125 StickyAxisAnnotation annotation = 130 StickyAxisAnnotation annotation =
126 new StickyAxisAnnotation( 131 new StickyAxisAnnotation(
127 w.getName(), 132 w.getName(),
128 (float) w.getValue(), 133 (float) w.getValue(),
129 StickyAxisAnnotation.SimpleAxis.Y_AXIS); 134 StickyAxisAnnotation.SimpleAxis.Y_AXIS);

http://dive4elements.wald.intevation.org