# HG changeset patch # User Felix Wolfsteller # Date 1328871743 0 # Node ID b56e8613ce0d25792baa2cc592652f4c74498ecb # Parent f55984858952b92b6ac429d5b7accb01f7631555 Adjust linear function offset. flys-artifacts/trunk@4027 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r f55984858952 -r b56e8613ce0d flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Fri Feb 10 10:45:32 2012 +0000 +++ b/flys-artifacts/ChangeLog Fri Feb 10 11:02:23 2012 +0000 @@ -1,3 +1,8 @@ +2012-02-10 Felix Wolfsteller + + * src/main/java/de/intevation/flys/artifacts/model/WWAxisTypes.java: + Adjust offset of linear function by same factor as the values. + 2012-02-10 Ingo Weinzierl * src/main/java/de/intevation/flys/exports/InfoGeneratorHelper.java: Write @@ -78,7 +83,8 @@ * src/main/java/de/intevation/flys/artifacts/model/WW.java: Add accessors to relative heights. - * + * src/main/java/de/intevation/flys/exports/ReferenceCurveExporter.java: + Add relative heights (to gauge) to csv export. 2012-02-09 Ingo Weinzierl diff -r f55984858952 -r b56e8613ce0d flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WWAxisTypes.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WWAxisTypes.java Fri Feb 10 10:45:32 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WWAxisTypes.java Fri Feb 10 11:02:23 2012 +0000 @@ -50,11 +50,11 @@ if (!normalized) { function1 = inCm1 - ? new LinearFunction(100d, -ww.getStartDatum()) + ? new LinearFunction(100d, -ww.getStartDatum()*100d) : Identity.IDENTITY; function2 = inCm2 - ? new LinearFunction(100d, -ww.getEndDatum()) + ? new LinearFunction(100d, -ww.getEndDatum()*100d) : Identity.IDENTITY; } else { @@ -66,7 +66,6 @@ function2 = new LinearFunction(scale1, -minW2); } - return new WW.ApplyFunctionIterator(ww, function1, function2); } }