<font size=2 face="Arial">Hi Gerd and Andrzej,</font>
<br>
<br><font size=2 face="Arial">> your choice of triangle is arbitrary.</font>
<br>
<br><font size=2 face="Arial">of course, but the version with 4 triangles
isn't.</font>
<br>
<br><font size=2 face="Arial">> bilinear interpolation seems better</font>
<br>
<br><font size=2 face="Arial">Yes. It's a little bit more to calculate,
but better. For our special case it is: </font>
<br>
<br><font size=2 face="Arial">h = h11 * (1 + y * x - x - y) + h21 * (x
- y * x) + h12 * (y - y * x) + h22 * y * x</font>
<br>
<br><font size=2 face="Arial">(h11 is left-bottom in coordinate origin,
the horizontal and vertical distance is 1)</font>
<br>
<br><font size=2 face="Arial">If your java-class have to much overhead,
you can use this formula.</font>
<br>
<br>
<br><font size=2 face="Arial">By the way, i would be very defensive with
interpolation in the case of missing values. The hgt values are only interpolated
values from original measurments. I would not interpolate values in the
near of missing values. That give us a nice but unreliably picture.</font>
<br>
<br>
<br><font size=2 face="Arial">Frank</font>