# HG changeset patch # User Tim Englich # Date 1257248790 0 # Node ID 21152e1bf3252562cd65d187989541e97100194b # Parent ee2d4134d0b346f0eb1c0788ea2ac76b8bda0382 Implemented the special case for TimeGaps in Meshes issue45 gnv-artifacts/trunk@282 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r ee2d4134d0b3 -r 21152e1bf325 gnv-artifacts/ChangeLog --- 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 + + * 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 * src/main/java/de/intevation/gnv/transition/profile/horizontalcrosssection/HorizontalCrossSectionMeshOutputTransition.java (createCSV): diff -r ee2d4134d0b3 -r 21152e1bf325 gnv-artifacts/src/main/java/de/intevation/gnv/chart/ChartFactory.java --- 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 it = timeGaps.iterator();