Issue #1425 make contouring handle NaN better.

Former-commit-id: a1bda65a85 [formerly 1588e1b194] [formerly a1bda65a85 [formerly 1588e1b194] [formerly b4f100da04 [formerly c090b012a6fafb8816f0c17c1af6f14774f08d83]]]
Former-commit-id: b4f100da04
Former-commit-id: a7c1e74ac2 [formerly 06ae24cf4f]
Former-commit-id: 45d4ef7ea5
This commit is contained in:
Ben Steffensmeier 2012-12-19 13:23:10 -06:00
parent cec63c30c7
commit 8af25f1870

View file

@ -364,7 +364,7 @@ public class ContourSupport {
float min = Float.POSITIVE_INFINITY;
float max = Float.NEGATIVE_INFINITY;
for (float f : data1D) {
if (f != Util.GRID_FILL_VALUE) {
if (f != Util.GRID_FILL_VALUE && !Float.isNaN(f)) {
min = Math.min(min, f);
max = Math.max(max, f);
}