[PATCH] Punkt 3.2 Lineare Interpolation weglassen für Peilungen

Wald Commits scm-commit at wald.intevation.org
Thu Jan 10 14:52:30 CET 2019


# HG changeset patch
# User gernotbelger
# Date 1547128343 -3600
# Node ID 3f0803009a8fa920eec9ba9778f98a09819cb13d
# Parent  0a30e01719ca8a5bc8c6e0a84f0deb7900c8a83a
Punkt 3.2 Lineare Interpolation weglassen für Peilungen

diff -r 0a30e01719ca -r 3f0803009a8f artifacts/src/main/java/org/dive4elements/river/exports/StyledSeriesBuilder.java
--- 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;
         }
     }
 


More information about the Dive4Elements-commits mailing list