Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/StaticWKmsArtifact.java @ 2652:9d2a06c3a134
Added DataType for lines that also stores width, use it. Added HasLabel interface for some series.
flys-artifacts/trunk@4318 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 27 Apr 2012 09:58:21 +0000 |
parents | 77cdc344ef77 |
children | 0143b44631cc |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/StaticWKmsArtifact.java Thu Apr 26 15:08:51 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/StaticWKmsArtifact.java Fri Apr 27 09:58:21 2012 +0000 @@ -258,7 +258,7 @@ * in the form {{x1, x2} {y1, y2}} ). */ @Override - public double [][] getWaterLines(int idx, FastCrossSectionLine csl) { + public Lines.LineData getWaterLines(int idx, FastCrossSectionLine csl) { logger.debug("getWaterLines(" + idx + ")"); List<Point2D> points = csl.getPoints(); @@ -271,7 +271,7 @@ double wAtKm = getWAtKm(wkms, km); if (wAtKm == -1) { logger.warn("Waterlevel at km " + km + " unknown."); - return new double[][] {{}}; + return new Lines.LineData(new double[][] {{}}, 0d); } return Lines.createWaterLines(points, wAtKm);