changeset 6643:bf76346864fd

Only look to W facets for inversion handling. This is a better fix for flys/issue1290 as the inversion code was intended to handle W's and not generic heightmarks and stuff.
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 23 Jul 2013 17:59:48 +0200
parents 724f9bf7fa9c
children adae55f2a005
files artifacts/src/main/java/org/dive4elements/river/exports/process/WOutProcessor.java
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/process/WOutProcessor.java	Tue Jul 23 17:11:07 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/WOutProcessor.java	Tue Jul 23 17:59:48 2013 +0200
@@ -69,7 +69,13 @@
             generator.addAreaSeries(area, index, visible);
         }
 
-        invertAxis(generator, wkms);
+        if (aaf.getFacetName().equals(FacetTypes.LONGITUDINAL_W) ||
+            aaf.getFacetName().equals(FacetTypes.DISCHARGE_LONGITUDINAL_W) ||
+            aaf.getFacetName().equals(FacetTypes.STATIC_WQKMS_W)) {
+            /* Only use W values to check if the diagram should be inverted
+             * see flys/issue1290 for details */
+            invertAxis(generator, wkms);
+        }
     }
 
     /**

http://dive4elements.wald.intevation.org