changeset 9590:3f0803009a8f

Punkt 3.2 Lineare Interpolation weglassen für Peilungen
author gernotbelger
date Thu, 10 Jan 2019 14:52:23 +0100
parents 0a30e01719ca
children ccbf8413ddbb
files artifacts/src/main/java/org/dive4elements/river/exports/StyledSeriesBuilder.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/StyledSeriesBuilder.java	Thu Jan 10 11:57:24 2019 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/StyledSeriesBuilder.java	Thu Jan 10 14:52:23 2019 +0100
@@ -81,8 +81,9 @@
             }
             series.add(xPoints[i], yPoints[i], false);
             
-            if (skipNANs && !Double.isNaN(xPoints[i]) && !Double.isNaN(yPoints[i])) 
-                    lastNonNaNIndex = i;
+            // if (skipNANs && !Double.isNaN(xPoints[i]) && !Double.isNaN(yPoints[i]))
+            if (!Double.isNaN(xPoints[i]) && !Double.isNaN(yPoints[i])) // skipNaN-State irrelevant, since lastNonNaNIndex is used for interpolation after gap-distance-comparison
+                lastNonNaNIndex = i;
         }
     }
 

http://dive4elements.wald.intevation.org