Mercurial > dive4elements > gnv-client
changeset 366:086e3af38b96
Fixed index error in i-gap detection in 2D interpolation.
gnv-artifacts/trunk@441 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 16 Dec 2009 22:10:46 +0000 |
parents | f66088a43ecc |
children | 8124e5de18b6 |
files | gnv-artifacts/ChangeLog gnv-artifacts/src/main/java/de/intevation/gnv/math/Interpolation2D.java |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog Wed Dec 16 19:29:05 2009 +0000 +++ b/gnv-artifacts/ChangeLog Wed Dec 16 22:10:46 2009 +0000 @@ -1,3 +1,8 @@ +2009-12-16 Sascha L. Teichmann <sascha.teichmann@intevation.de> + + * src/main/java/de/intevation/gnv/math/Interpolation2D.java: + Fixed index error in i-gab detection between neighbors. + 2009-12-16 Ingo Weinzierl <ingo.weinzierl@intevation.de> * src/main/java/de/intevation/gnv/state/profile/horizontal/HorizontalProfileMeshCrossOutputState.java:
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/math/Interpolation2D.java Wed Dec 16 19:29:05 2009 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/math/Interpolation2D.java Wed Dec 16 22:10:46 2009 +0000 @@ -162,7 +162,7 @@ // only interpolate if we have all four neighbors // and we do not have any gaps. if (numNeighbors == 4 - && !neighbors[0].hasIGap(neighbors[0]) + && !neighbors[0].hasIGap(neighbors[1]) && !neighbors[1].hasJGap(neighbors[3]) && !neighbors[3].hasIGap(neighbors[2]) && !neighbors[2].hasJGap(neighbors[0])