Skip to content

Commit

Permalink
Geotiff output: set unreachable cells
Browse files Browse the repository at this point in the history
to 999
  • Loading branch information
ansoncfit authored Apr 6, 2023
1 parent 039cc70 commit ce711ee
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
}
Expand Down Expand Up @@ -199,4 +203,4 @@ public void writeGeotiff (OutputStream out) {

}

}
}

0 comments on commit ce711ee

Please sign in to comment.