Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/injector/KmFromGaugeNameInjector.java @ 8387:8c60595fd74c
Unify discharge curve subtitles.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 07 Oct 2014 15:23:08 +0200 |
parents | 16dc2da05aef |
children | 5e38e2924c07 |
comparison
equal
deleted
inserted
replaced
8386:a9d493aba926 | 8387:8c60595fd74c |
---|---|
38 Gauge gauge = access.getRiver().determineGaugeByName(name); | 38 Gauge gauge = access.getRiver().determineGaugeByName(name); |
39 if (gauge == null) { | 39 if (gauge == null) { |
40 log.error("No Gauge could be found for name " + name + "!"); | 40 log.error("No Gauge could be found for name " + name + "!"); |
41 return; | 41 return; |
42 } | 42 } |
43 ctx.putContextValue(CURRENT_KM, gauge.getStation()); | 43 ctx.putContextValue(CURRENT_KM, gauge.getStation().doubleValue()); |
44 return; | 44 return; |
45 } | 45 } |
46 | 46 |
47 } | 47 } |