changeset 4342:4938743a8899

FixWQCurveGenerator: Use suggested max q value of curve.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 31 Oct 2012 14:44:18 +0100
parents d15012c99f40
children b0173cdbbe51
files flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java	Wed Oct 31 14:43:16 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java	Wed Oct 31 14:44:18 2012 +0100
@@ -251,9 +251,12 @@
             logger.warn("doExtremeCurveOut: Facet does not contain Curve");
             return;
         }
-        // TODO find max Q.
-        // TODO add marker where extrapolation starts.
-        double maxQ = 4000;
+
+        double maxQ = curve.getSuggestedMaxQ();
+        if (maxQ == Double.MAX_VALUE) {
+            maxQ = 8000;
+        }
+
         StyledXYSeries series = JFreeUtil.sampleFunction2D(
                 curve,
                 doc,

http://dive4elements.wald.intevation.org