Skip to content

Commit ce711ee

Browse files
authored
Geotiff output: set unreachable cells
to 999
1 parent 039cc70 commit ce711ee

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/main/java/com/conveyal/r5/analyst/cluster/TimeGridWriter.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,11 @@ public void writeGeotiff (OutputStream out) {
161161
for (int x = 0; x < extents.width; x++) {
162162
for (int n = 0; n < travelTimeResult.nSamplesPerPoint; n++) {
163163
val = travelTimeResult.values[n][(y * extents.width + x)];
164-
if (val < FastRaptorWorker.UNREACHED) raster.setSample(x, y, n, val);
164+
if (val < FastRaptorWorker.UNREACHED) {
165+
raster.setSample(x, y, n, val);
166+
} else {
167+
raster.setSample(x, y, n, 999);
168+
}
165169
}
166170
}
167171
}
@@ -199,4 +203,4 @@ public void writeGeotiff (OutputStream out) {
199203

200204
}
201205

202-
}
206+
}

0 commit comments

Comments
 (0)