Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java @ 3123:edf629d43f05
Cosmetics, docs.
flys-artifacts/trunk@4724 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 20 Jun 2012 12:27:10 +0000 |
parents | 5642a83420f2 |
children | 555ed85af32e |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java Wed Jun 20 12:23:11 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java Wed Jun 20 12:27:10 2012 +0000 @@ -722,6 +722,9 @@ /** * Get points of line describing the surface of water at cross section. * + * @param idx Index for getWaterlevelData. + * @param csl The profile/surface to fill with water. + * * @return an array holding coordinates of points of surface of water ( * in the form {{x1, x2} {y1, y2}} ). */ @@ -738,7 +741,7 @@ return Lines.createWaterLines(points, 0.0f); } - if (wqkms.length < idx) { + if (wqkms.length <= idx) { logger.error("getWaterLines() requested index (" + idx + " not found."); } @@ -767,6 +770,7 @@ last_w = triple.getW(i); old_dist_wish = diff; } + return Lines.createWaterLines(points, last_w); }