Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
8812:8ce2d749f0a7 | 8813:8abe94270f32 |
---|---|
199 new FastCrossSectionLine(lastKm, points); | 199 new FastCrossSectionLine(lastKm, points); |
200 lines.add(line); | 200 lines.add(line); |
201 points = new ArrayList<Point2D>(500); | 201 points = new ArrayList<Point2D>(500); |
202 } | 202 } |
203 | 203 |
204 Point2D p = new Point2D.Double(x, y); | 204 points.add(new Point2D.Double(x, y)); |
205 | |
206 if (CrossSectionLine.isValid(p)) { | |
207 points.add(p); | |
208 } | |
209 | 205 |
210 lastKm = km; | 206 lastKm = km; |
211 lastId = id; | 207 lastId = id; |
212 } | 208 } |
213 | 209 |