Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
3122:721298eeb694 | 3123:edf629d43f05 |
---|---|
720 | 720 |
721 | 721 |
722 /** | 722 /** |
723 * Get points of line describing the surface of water at cross section. | 723 * Get points of line describing the surface of water at cross section. |
724 * | 724 * |
725 * @param idx Index for getWaterlevelData. | |
726 * @param csl The profile/surface to fill with water. | |
727 * | |
725 * @return an array holding coordinates of points of surface of water ( | 728 * @return an array holding coordinates of points of surface of water ( |
726 * in the form {{x1, x2} {y1, y2}} ). | 729 * in the form {{x1, x2} {y1, y2}} ). |
727 */ | 730 */ |
728 @Override | 731 @Override |
729 public Lines.LineData getWaterLines(int idx, FastCrossSectionLine csl) { | 732 public Lines.LineData getWaterLines(int idx, FastCrossSectionLine csl) { |
736 if (wqkms.length == 0) { | 739 if (wqkms.length == 0) { |
737 logger.error("No WQKms found."); | 740 logger.error("No WQKms found."); |
738 return Lines.createWaterLines(points, 0.0f); | 741 return Lines.createWaterLines(points, 0.0f); |
739 } | 742 } |
740 | 743 |
741 if (wqkms.length < idx) { | 744 if (wqkms.length <= idx) { |
742 logger.error("getWaterLines() requested index (" | 745 logger.error("getWaterLines() requested index (" |
743 + idx + " not found."); | 746 + idx + " not found."); |
744 } | 747 } |
745 | 748 |
746 // Find W at km, linear naive approach. | 749 // Find W at km, linear naive approach. |
765 break; | 768 break; |
766 } | 769 } |
767 last_w = triple.getW(i); | 770 last_w = triple.getW(i); |
768 old_dist_wish = diff; | 771 old_dist_wish = diff; |
769 } | 772 } |
773 | |
770 return Lines.createWaterLines(points, last_w); | 774 return Lines.createWaterLines(points, last_w); |
771 } | 775 } |
772 | 776 |
773 | 777 |
774 /** | 778 /** |