changeset 1673:68260e38029a

Modified code to determine the elevation model of Wsts in the LongitudinalSectionGenerator. flys-artifacts/trunk@2886 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 04 Oct 2011 15:30:09 +0000
parents 0b6dac664bbb
children b5209452f6bb
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java
diffstat 2 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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 <ingo@intevation.de>
+
+	* 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	<sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/math/BackJumpCorrector.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,

http://dive4elements.wald.intevation.org