Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/CrossSectionWaterLineFacet.java @ 9499:853f2dafc16e
VegetationZones in CrossSectionsDiagram
author | gernotbelger |
---|---|
date | Thu, 27 Sep 2018 18:06:26 +0200 |
parents | bd5f5d2220fa |
children |
comparison
equal
deleted
inserted
replaced
9496:d8e753d0fdb9 | 9499:853f2dafc16e |
---|---|
99 final WaterLineArtifact lineArtifact = (WaterLineArtifact) artifact; | 99 final WaterLineArtifact lineArtifact = (WaterLineArtifact) artifact; |
100 | 100 |
101 final double currentKm = crossSection.getKm(); | 101 final double currentKm = crossSection.getKm(); |
102 | 102 |
103 final double waterLevel = lineArtifact.getWaterLevel(this.type, this.hash, this.stateId, currentKm, this.waterLineIndex, (Double) nextKm, | 103 final double waterLevel = lineArtifact.getWaterLevel(this.type, this.hash, this.stateId, currentKm, this.waterLineIndex, (Double) nextKm, |
104 (Double) prevKm, | 104 (Double) prevKm, context); |
105 context); | |
106 if (Double.isNaN(waterLevel)) | 105 if (Double.isNaN(waterLevel)) |
107 return NO_LINE_DATA; | 106 return NO_LINE_DATA; |
108 | 107 |
109 return Lines.createWaterLines(crossSection.getPoints(), waterLevel); | 108 return Lines.createWaterLines(crossSection.getPoints(), waterLevel); |
110 } | 109 } |