Skip to content

Commit b1bcd13

Browse files
committed
Enhance raster reading by adding fillValue parameter to improve handling of missing data in TMS endpoint
1 parent efdd0cc commit b1bcd13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/api/src/tms.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ tms.get('/:tilemap/:z/:x/:y.tif', async (c) => {
119119
const raster: ReadRasterResult = await tiff.readRasters({
120120
bbox: tileBbox,
121121
width: 512,
122-
height: 512
122+
height: 512,
123+
fillValue: -9999
123124
});
124125

125126
const pixelSizeX = (eastDeg - westDeg) / 512;

0 commit comments

Comments
 (0)