Mercurial > dive4elements > river
changeset 6605:ddef735db96a
Include the calculation borders in the official line export.
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Thu, 18 Jul 2013 15:22:45 +0200 |
parents | d3df835be006 |
children | b4fcc9308d00 |
files | artifacts/src/main/java/org/dive4elements/river/exports/WaterlevelExporter.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/WaterlevelExporter.java Thu Jul 18 14:51:26 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/WaterlevelExporter.java Thu Jul 18 15:22:45 2013 +0200 @@ -393,14 +393,14 @@ if (first > last) { for (int i = wqkms.size() - 1; i >= 0; i--) { dp = wqkms.get(i, dp); - if (dp[2] < first && dp[2] > last) { + if (dp[2] <= first + 1E-5 && dp[2] > last - 1E-5) { filtered.add(dp[0], dp[1], dp[2]); } } } else { for (int i = 0; i < wqkms.size(); i++) { dp = wqkms.get(i, dp); - if (dp[2] < last && dp[2] > first) { + if (dp[2] < last + 1E-5 && dp[2] > first - 1E-5) { filtered.add(dp[0], dp[1], dp[2]); } }