# HG changeset patch # User Sascha L. Teichmann # Date 1262612569 0 # Node ID 537e663d6c0c1b2bb6eb58d55cf958b32486620c # Parent 4cd03910f97ee6c53ec7405734a9258f0b691483 vertical cross section: Fixed problem with running to max depth on every column in interpolation. gnv-artifacts/trunk@501 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 4cd03910f97e -r 537e663d6c0c gnv-artifacts/ChangeLog --- a/gnv-artifacts/ChangeLog Mon Jan 04 13:14:27 2010 +0000 +++ b/gnv-artifacts/ChangeLog Mon Jan 04 13:42:49 2010 +0000 @@ -1,3 +1,8 @@ +2010-01-04 Sascha L. Teichmann + + * src/main/java/de/intevation/gnv/math/Interpolation3D.java: + Fixed problem with running to max depth on every column. + 2010-01-04 Sascha L. Teichmann * src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java: diff -r 4cd03910f97e -r 537e663d6c0c gnv-artifacts/src/main/java/de/intevation/gnv/math/Interpolation3D.java --- a/gnv-artifacts/src/main/java/de/intevation/gnv/math/Interpolation3D.java Mon Jan 04 13:14:27 2010 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/math/Interpolation3D.java Mon Jan 04 13:42:49 2010 +0000 @@ -210,7 +210,8 @@ center.x); int j = i; for (double z = -cellHeight*0.5; - j < raster.length; z -= cellHeight, j += width) { + j < raster.length && z >= depth; + z -= cellHeight, j += width) { double v0 = neighbors[0].value(z); double v1 = neighbors[1].value(z);