Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java @ 2664:3c4ec3b50af7
Fix area creation.
flys-artifacts/trunk@4341 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 03 May 2012 09:41:08 +0000 |
parents | 9e8459c2e7d4 |
children | 5652a851f1b4 |
comparison
equal
deleted
inserted
replaced
2663:33d61e2a49a2 | 2664:3c4ec3b50af7 |
---|---|
25 import de.intevation.flys.jfree.StyledAreaSeriesCollection; | 25 import de.intevation.flys.jfree.StyledAreaSeriesCollection; |
26 import de.intevation.flys.jfree.StyledXYSeries; | 26 import de.intevation.flys.jfree.StyledXYSeries; |
27 | 27 |
28 import de.intevation.flys.utils.FLYSUtils; | 28 import de.intevation.flys.utils.FLYSUtils; |
29 import de.intevation.flys.utils.DataUtil; | 29 import de.intevation.flys.utils.DataUtil; |
30 | |
31 import de.intevation.flys.geom.Lines; | |
30 | 32 |
31 | 33 |
32 /** | 34 /** |
33 * An OutGenerator that generates longitudinal section curves. | 35 * An OutGenerator that generates longitudinal section curves. |
34 * | 36 * |
595 StyledSeriesBuilder.addPoints(up, (double [][]) data.getUpperData()); | 597 StyledSeriesBuilder.addPoints(up, (double [][]) data.getUpperData()); |
596 } | 598 } |
597 else if (data.getUpperData() instanceof WKms) { | 599 else if (data.getUpperData() instanceof WKms) { |
598 StyledSeriesBuilder.addPoints(up, (WKms) data.getUpperData()); | 600 StyledSeriesBuilder.addPoints(up, (WKms) data.getUpperData()); |
599 } | 601 } |
602 else if (data.getUpperData() instanceof Lines.LineData) { | |
603 StyledSeriesBuilder.addPoints(up, ((Lines.LineData) data.getUpperData()).points); | |
604 } | |
600 else { | 605 else { |
601 logger.error("Do not know how to deal with (up) area info from: " | 606 logger.error("Do not know how to deal with (up) area info from: " |
602 + data.getUpperData()); | 607 + data.getUpperData()); |
603 } | 608 } |
604 } | 609 } |
621 StyledSeriesBuilder.addPoints(down, (double[][]) data.getLowerData()); | 626 StyledSeriesBuilder.addPoints(down, (double[][]) data.getLowerData()); |
622 } | 627 } |
623 else if (data.getLowerData() instanceof WKms) { | 628 else if (data.getLowerData() instanceof WKms) { |
624 StyledSeriesBuilder.addPoints(down, (WKms) data.getLowerData()); | 629 StyledSeriesBuilder.addPoints(down, (WKms) data.getLowerData()); |
625 } | 630 } |
631 else if (data.getLowerData() instanceof Lines.LineData) { | |
632 StyledSeriesBuilder.addPoints(down, ((Lines.LineData) data.getLowerData()).points); | |
633 } | |
626 else { | 634 else { |
627 logger.error("Do not know how to deal with (down) area info from: " | 635 logger.error("Do not know how to deal with (down) area info from: " |
628 + data.getLowerData()); | 636 + data.getLowerData()); |
629 } | 637 } |
630 } | 638 } |