diff --git a/src/main/java/com/conveyal/r5/analyst/cluster/TimeGridWriter.java b/src/main/java/com/conveyal/r5/analyst/cluster/TimeGridWriter.java index c057c0912..ba79e252e 100644 --- a/src/main/java/com/conveyal/r5/analyst/cluster/TimeGridWriter.java +++ b/src/main/java/com/conveyal/r5/analyst/cluster/TimeGridWriter.java @@ -161,7 +161,11 @@ public void writeGeotiff (OutputStream out) { for (int x = 0; x < extents.width; x++) { for (int n = 0; n < travelTimeResult.nSamplesPerPoint; n++) { val = travelTimeResult.values[n][(y * extents.width + x)]; - if (val < FastRaptorWorker.UNREACHED) raster.setSample(x, y, n, val); + if (val < FastRaptorWorker.UNREACHED) { + raster.setSample(x, y, n, val); + } else { + raster.setSample(x, y, n, 999); + } } } } @@ -199,4 +203,4 @@ public void writeGeotiff (OutputStream out) { } -} \ No newline at end of file +}