annotate artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthCalculationResult.java @ 8894:a66f2a7c4f84

SINFO FlowDepth - slight code cleanup
author gernotbelger
date Thu, 15 Feb 2018 18:40:40 +0100
parents cc86b0f9b3c3
children d9dbf0b74bc2
rev   line source
8854
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
1 /* Copyright (C) 2017 by Bundesanstalt für Gewässerkunde
8877
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
2 * Software engineering by
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
3 * Björnsen Beratende Ingenieure GmbH
8854
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
5 *
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
6 * This file is Free Software under the GNU AGPL (>=v3)
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
8 * documentation coming with Dive4Elements River for details.
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
9 */
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
10 package org.dive4elements.river.artifacts.sinfo.flowdepth;
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
11
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
12 import java.io.Serializable;
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
13 import java.util.ArrayList;
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
14 import java.util.Collection;
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
15 import java.util.Collections;
8886
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
16 import java.util.List;
8854
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
17
8894
a66f2a7c4f84 SINFO FlowDepth - slight code cleanup
gernotbelger
parents: 8886
diff changeset
18 import org.dive4elements.river.artifacts.sinfo.util.BedHeightInfo;
a66f2a7c4f84 SINFO FlowDepth - slight code cleanup
gernotbelger
parents: 8886
diff changeset
19 import org.dive4elements.river.artifacts.sinfo.util.WstInfo;
a66f2a7c4f84 SINFO FlowDepth - slight code cleanup
gernotbelger
parents: 8886
diff changeset
20
8854
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
21 import gnu.trove.TDoubleArrayList;
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
22
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
23 /**
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
24 * Contains the results of a {@link FlowDepthCalculation}.
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
25 *
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
26 * @author Gernot Belger
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
27 */
8886
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
28 class FlowDepthCalculationResult implements Serializable {
8854
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
29
8877
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
30 private static final long serialVersionUID = 1L;
8854
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
31
8877
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
32 private final Collection<FlowDepthRow> rows = new ArrayList<>();
8854
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
33
8877
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
34 private final String label;
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
35
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
36 private final BedHeightInfo sounding;
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
37
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
38 private final WstInfo wst;
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
39
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
40 public FlowDepthCalculationResult(final String label, final WstInfo wst, final BedHeightInfo sounding) {
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
41 this.label = label;
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
42 this.wst = wst;
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
43 this.sounding = sounding;
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
44 }
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
45
8886
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
46 public void addRow(final double station, final double flowDepth, final double flowDepthWithTkh, final SoilKind tkhKind, final double tkh,
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
47 final double tkhUp, final double tkhDown, final double waterlevel, final double discharge, final String waterlevelLabel, final String gauge,
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
48 final double meanBedHeight, final String sondageLabel, final String location) {
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
49 this.rows.add(new FlowDepthRow(station, flowDepth, flowDepthWithTkh, tkhKind, tkh, tkhUp, tkhDown, waterlevel, discharge, waterlevelLabel, gauge,
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
50 meanBedHeight, sondageLabel, location));
8877
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
51 }
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
52
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
53 public String getLabel() {
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
54 return this.label;
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
55 }
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
56
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
57 public WstInfo getWst() {
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
58 return this.wst;
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
59 }
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
60
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
61 public BedHeightInfo getSounding() {
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
62 return this.sounding;
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
63 }
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
64
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
65 public Collection<FlowDepthRow> getRows() {
8886
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
66 return Collections.unmodifiableCollection(this.rows);
8877
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
67 }
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
68
8854
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
69 public double[][] getFlowDepthPoints() {
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
70
8877
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
71 final TDoubleArrayList xPoints = new TDoubleArrayList(this.rows.size());
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
72 final TDoubleArrayList yPoints = new TDoubleArrayList(this.rows.size());
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
73
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
74 for (final FlowDepthRow row : this.rows) {
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
75 xPoints.add(row.getStation());
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
76 yPoints.add(row.getFlowDepth());
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
77 }
9f7a285b0ee3 Some work on SINFO FlowDepth
gernotbelger
parents: 8854
diff changeset
78
8854
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
79 return new double[][] { xPoints.toNativeArray(), yPoints.toNativeArray() };
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
80 }
8884
7a8c12706834 Work on SINFO-FlowDepth
gernotbelger
parents: 8877
diff changeset
81
7a8c12706834 Work on SINFO-FlowDepth
gernotbelger
parents: 8877
diff changeset
82 public double[][] getFlowDepthTkhPoints() {
7a8c12706834 Work on SINFO-FlowDepth
gernotbelger
parents: 8877
diff changeset
83
7a8c12706834 Work on SINFO-FlowDepth
gernotbelger
parents: 8877
diff changeset
84 final TDoubleArrayList xPoints = new TDoubleArrayList(this.rows.size());
7a8c12706834 Work on SINFO-FlowDepth
gernotbelger
parents: 8877
diff changeset
85 final TDoubleArrayList yPoints = new TDoubleArrayList(this.rows.size());
7a8c12706834 Work on SINFO-FlowDepth
gernotbelger
parents: 8877
diff changeset
86
7a8c12706834 Work on SINFO-FlowDepth
gernotbelger
parents: 8877
diff changeset
87 for (final FlowDepthRow row : this.rows) {
7a8c12706834 Work on SINFO-FlowDepth
gernotbelger
parents: 8877
diff changeset
88 xPoints.add(row.getStation());
7a8c12706834 Work on SINFO-FlowDepth
gernotbelger
parents: 8877
diff changeset
89 yPoints.add(row.getFlowDepthWithTkh());
7a8c12706834 Work on SINFO-FlowDepth
gernotbelger
parents: 8877
diff changeset
90 }
7a8c12706834 Work on SINFO-FlowDepth
gernotbelger
parents: 8877
diff changeset
91
7a8c12706834 Work on SINFO-FlowDepth
gernotbelger
parents: 8877
diff changeset
92 return new double[][] { xPoints.toNativeArray(), yPoints.toNativeArray() };
7a8c12706834 Work on SINFO-FlowDepth
gernotbelger
parents: 8877
diff changeset
93 }
7a8c12706834 Work on SINFO-FlowDepth
gernotbelger
parents: 8877
diff changeset
94
8886
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
95 public double[][] getTkhUpPoints() {
8884
7a8c12706834 Work on SINFO-FlowDepth
gernotbelger
parents: 8877
diff changeset
96 final TDoubleArrayList xPoints = new TDoubleArrayList(this.rows.size());
7a8c12706834 Work on SINFO-FlowDepth
gernotbelger
parents: 8877
diff changeset
97 final TDoubleArrayList yPoints = new TDoubleArrayList(this.rows.size());
8886
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
98 final List<SoilKind> kinds = new ArrayList<>(this.rows.size());
8884
7a8c12706834 Work on SINFO-FlowDepth
gernotbelger
parents: 8877
diff changeset
99
7a8c12706834 Work on SINFO-FlowDepth
gernotbelger
parents: 8877
diff changeset
100 for (final FlowDepthRow row : this.rows) {
7a8c12706834 Work on SINFO-FlowDepth
gernotbelger
parents: 8877
diff changeset
101 xPoints.add(row.getStation());
8886
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
102 yPoints.add(row.getTkhUp());
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
103 kinds.add(row.getTkhKind());
8884
7a8c12706834 Work on SINFO-FlowDepth
gernotbelger
parents: 8877
diff changeset
104 }
7a8c12706834 Work on SINFO-FlowDepth
gernotbelger
parents: 8877
diff changeset
105
8886
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
106 return adjustTkhVisualization(xPoints, yPoints, kinds);
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
107 }
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
108
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
109 public double[][] getTkhDownPoints() {
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
110 final TDoubleArrayList xPoints = new TDoubleArrayList(this.rows.size());
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
111 final TDoubleArrayList yPoints = new TDoubleArrayList(this.rows.size());
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
112 final List<SoilKind> kinds = new ArrayList<>(this.rows.size());
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
113
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
114 for (final FlowDepthRow row : this.rows) {
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
115 xPoints.add(row.getStation());
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
116 yPoints.add(row.getTkhDown());
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
117 kinds.add(row.getTkhKind());
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
118 }
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
119
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
120 return adjustTkhVisualization(xPoints, yPoints, kinds);
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
121 }
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
122
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
123 /**
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
124 * the up and down points must be further adjusted for visualization, see Mail Hr. Reiß
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
125 * basically we need to introduce extra points when the kind changes, so we get vertical lines in that case
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
126 */
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
127 private double[][] adjustTkhVisualization(final TDoubleArrayList xPoints, final TDoubleArrayList yPoints, final List<SoilKind> kinds) {
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
128
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
129 final TDoubleArrayList adjustedX = new TDoubleArrayList(xPoints.size());
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
130 final TDoubleArrayList adjustedY = new TDoubleArrayList(yPoints.size());
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
131
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
132 adjustedX.add(xPoints.get(0));
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
133 adjustedY.add(yPoints.get(0));
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
134
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
135 for (int i = 1; i < xPoints.size(); i++) {
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
136
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
137 final SoilKind kind1 = kinds.get(i - 1);
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
138 final SoilKind kind2 = kinds.get(i);
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
139
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
140 if (kind1 != kind2) {
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
141 /* introduce two extra points in order to create a vertical line in the middle of the two adjacent points */
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
142 final double x1 = xPoints.get(i - 1);
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
143 final double y1 = yPoints.get(i - 1);
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
144 final double x2 = xPoints.get(i);
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
145 final double y2 = yPoints.get(i);
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
146
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
147 final double middleX = (x1 + x2) / 2;
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
148
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
149 // REMARK: we can't produce a 100% vertical line, as the area-renderer will not work correctly
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
150 adjustedX.add(middleX - 0.0001);
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
151 adjustedY.add(y1);
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
152
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
153 adjustedX.add(middleX + 0.0001);
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
154 adjustedY.add(y2);
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
155 }
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
156
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
157 /* always add the real point now */
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
158 adjustedX.add(xPoints.get(i));
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
159 adjustedY.add(yPoints.get(i));
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
160 }
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
161
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
162
cc86b0f9b3c3 SINFO-FlowDepth - work on tkh themes
gernotbelger
parents: 8884
diff changeset
163 return new double[][] { adjustedX.toNativeArray(), adjustedY.toNativeArray() };
8884
7a8c12706834 Work on SINFO-FlowDepth
gernotbelger
parents: 8877
diff changeset
164 }
8854
7bbfb24e6eec SINFO - first prototype of BArt Fließtiefen
gernotbelger
parents:
diff changeset
165 }

http://dive4elements.wald.intevation.org