diff backend/src/main/java/org/dive4elements/river/model/CrossSection.java @ 8813:8abe94270f32

Do not filter cross section points for display. Filtering coordinates outside an extent probably aimed at omitting outliers from the diagram. This is obsolete and had the side effect of filtering the important point at x = 0.
author Tom Gottfried <tom@intevation.de>
date Fri, 28 Apr 2017 19:03:56 +0200
parents 9d2e69f971f5
children 5e38e2924c07
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/model/CrossSection.java	Thu Apr 13 15:25:26 2017 +0200
+++ b/backend/src/main/java/org/dive4elements/river/model/CrossSection.java	Fri Apr 28 19:03:56 2017 +0200
@@ -201,11 +201,7 @@
                 points = new ArrayList<Point2D>(500);
             }
 
-            Point2D p = new Point2D.Double(x, y);
-
-            if (CrossSectionLine.isValid(p)) {
-                points.add(p);
-            }
+            points.add(new Point2D.Double(x, y));
 
             lastKm = km;
             lastId = id;

http://dive4elements.wald.intevation.org