# HG changeset patch # User Ingo Weinzierl # Date 1317742209 0 # Node ID 68260e38029aa8f3b35787a744ab5d3af85bf338 # Parent 0b6dac664bbbda68e0974dca0a5f0f056181bb44 Modified code to determine the elevation model of Wsts in the LongitudinalSectionGenerator. flys-artifacts/trunk@2886 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 0b6dac664bbb -r 68260e38029a flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Tue Oct 04 15:29:39 2011 +0000 +++ b/flys-artifacts/ChangeLog Tue Oct 04 15:30:09 2011 +0000 @@ -1,3 +1,9 @@ +2011-10-04 Ingo Weinzierl + + * src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java: + Fetch the WstUnit value from river - the Wst itself no longer supports a + Unit iself. + 2011-10-04 Sascha L. Teichmann * src/main/java/de/intevation/flys/artifacts/math/BackJumpCorrector.java, diff -r 0b6dac664bbb -r 68260e38029a flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java --- a/flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java Tue Oct 04 15:29:39 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java Tue Oct 04 15:30:09 2011 +0000 @@ -26,10 +26,8 @@ import de.intevation.flys.artifacts.model.FacetTypes; import de.intevation.flys.artifacts.model.WQKms; -import de.intevation.flys.artifacts.model.WstFactory; import de.intevation.flys.jfree.StickyAxisAnnotation; import de.intevation.flys.model.Annotation; -import de.intevation.flys.model.Wst; import de.intevation.flys.utils.FLYSUtils; @@ -135,8 +133,7 @@ protected String getYAxisLabel() { FLYSArtifact flys = (FLYSArtifact) master; - Wst wst = WstFactory.getWst(FLYSUtils.getRiver(flys)); - String unit = wst.getUnit().getName(); + String unit = FLYSUtils.getRiver(flys).getWstUnit().getName(); return msg( I18N_YAXIS_LABEL,