Mercurial > dive4elements > river
comparison flys-artifacts/ChangeLog @ 3144:05a7298c4f20
Fix: add method to find discharge sector border for given river and km.
flys-artifacts/trunk@4752 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 21 Jun 2012 17:01:17 +0000 |
parents | 29022c93027d |
children | be612065993e |
comparison
equal
deleted
inserted
replaced
3143:29022c93027d | 3144:05a7298c4f20 |
---|---|
1 2012-06-21 Sascha L. Teichmann <sascha.teichmann@intevation.de> | |
2 | |
3 * src/main/java/de/intevation/flys/artifacts/model/GaugeRange.java: | |
4 added method getSectorBorder(int). With this method you can figure | |
5 the three discharge sector borders. Returns NaN if border is | |
6 not there. Usage: | |
7 | |
8 GaugeFinderFactory ggf = GaugeFinderFactory.getInstance(); | |
9 GaugeFinder gf = ggf.getGaugeFinder("Elbe"); | |
10 if (gf == null) { /* FAIL */ } | |
11 GaugeRange gr = gf.find(km); // km is the km where you are. | |
12 if (gr == null) { /* FAIL */ } | |
13 | |
14 double m0 = gr.getSectorBorder(0); // Draw as marker if not NaN | |
15 double m1 = gr.getSectorBorder(1); // Draw as marker if not NaN | |
16 double m2 = gr.getSectorBorder(2); // Draw as marker if not NaN | |
17 | |
18 Labels should be: | |
19 '(MNQ+MQ)/2' for m0 | |
20 '(MQ+MHQ)/2' for m1 | |
21 'HQ5' for m2 | |
22 | |
1 2012-06-21 Sascha L. Teichmann <sascha.teichmann@intevation.de> | 23 2012-06-21 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
2 | 24 |
3 * src/main/java/de/intevation/flys/artifacts/model/GaugeFinderFactory.java: | 25 * src/main/java/de/intevation/flys/artifacts/model/GaugeFinderFactory.java: |
4 New. Cache access to per river gauge finders. This very useful | 26 New. Cache access to per river gauge finders. This very useful |
5 if you want to draw the discharge sectors of river at a given | 27 if you want to draw the discharge sectors of river at a given |