Mercurial > dive4elements > gnv-client
changeset 221:21152e1bf325
Implemented the special case for TimeGaps in Meshes issue45
gnv-artifacts/trunk@282 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Tue, 03 Nov 2009 11:46:30 +0000 (2009-11-03) |
parents | ee2d4134d0b3 |
children | 3e82b4f1c455 |
files | gnv-artifacts/ChangeLog gnv-artifacts/src/main/java/de/intevation/gnv/chart/ChartFactory.java |
diffstat | 2 files changed, 13 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog Mon Nov 02 10:58:03 2009 +0000 +++ b/gnv-artifacts/ChangeLog Tue Nov 03 11:46:30 2009 +0000 @@ -1,3 +1,10 @@ +2009-11-03 Tim Englich <tim.englich@intevation.de> + + * src/main/java/de/intevation/gnv/chart/ChartFactory.java (getTimeGapValue): + Integrated special case for TimeGaps in Meshes. There is no Gap defined in + Meshes so we have to use Long.MAXVALE to define a Gap for a Mesh which value + canno be reached. + 2009-11-02 Tim Englich <tim.englich@intevation.de> * src/main/java/de/intevation/gnv/transition/profile/horizontalcrosssection/HorizontalCrossSectionMeshOutputTransition.java (createCSV):
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/chart/ChartFactory.java Mon Nov 02 10:58:03 2009 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/chart/ChartFactory.java Tue Nov 03 11:46:30 2009 +0000 @@ -403,8 +403,12 @@ long gap = 0; if (gapID < 0 || gapID >= 99){ - if (pEnd-pStart < 60) - gap = (3/(pEnd-pStart)) * (dEnd.getTime() - dStart.getTime()); + + if (gapID == -1){ // Mesh + gap = Long.MAX_VALUE; // Es gibt keine L�cken in Netzen. + }else if (pEnd-pStart < 60){ + gap = (3/(pEnd-pStart)) * (dEnd.getTime() - dStart.getTime()); + } }else{ Iterator<TimeGap> it = timeGaps.iterator();