diff --git a/packages/tiler/data/expected/tile_1024_262144_262144_z19.png b/packages/tiler/data/expected/tile_1024_262144_262144_z19.png index 2323efbcf..5df93090a 100644 Binary files a/packages/tiler/data/expected/tile_1024_262144_262144_z19.png and b/packages/tiler/data/expected/tile_1024_262144_262144_z19.png differ diff --git a/packages/tiler/data/expected/tile_2048_262144_262144_z19.png b/packages/tiler/data/expected/tile_2048_262144_262144_z19.png index fd8e3bc00..b4ffc8b6d 100644 Binary files a/packages/tiler/data/expected/tile_2048_262144_262144_z19.png and b/packages/tiler/data/expected/tile_2048_262144_262144_z19.png differ diff --git a/packages/tiler/data/expected/tile_256_131072_131072_z18.png b/packages/tiler/data/expected/tile_256_131072_131072_z18.png index 2d0fc1cc6..a2ec41166 100644 Binary files a/packages/tiler/data/expected/tile_256_131072_131072_z18.png and b/packages/tiler/data/expected/tile_256_131072_131072_z18.png differ diff --git a/packages/tiler/data/expected/tile_256_262144_262144_z19.png b/packages/tiler/data/expected/tile_256_262144_262144_z19.png index 5e0aa4586..3e6c495f2 100644 Binary files a/packages/tiler/data/expected/tile_256_262144_262144_z19.png and b/packages/tiler/data/expected/tile_256_262144_262144_z19.png differ diff --git a/packages/tiler/data/expected/tile_4096_262144_262144_z19.png b/packages/tiler/data/expected/tile_4096_262144_262144_z19.png index affd82f48..126de2913 100644 Binary files a/packages/tiler/data/expected/tile_4096_262144_262144_z19.png and b/packages/tiler/data/expected/tile_4096_262144_262144_z19.png differ diff --git a/packages/tiler/data/expected/tile_512_262144_262144_z19.png b/packages/tiler/data/expected/tile_512_262144_262144_z19.png index 8fe90b561..316a67c2c 100644 Binary files a/packages/tiler/data/expected/tile_512_262144_262144_z19.png and b/packages/tiler/data/expected/tile_512_262144_262144_z19.png differ diff --git a/packages/tiler/data/rgba8_tiled.wm.tiff b/packages/tiler/data/rgba8_tiled.wm.tiff new file mode 100644 index 000000000..bf2be193e Binary files /dev/null and b/packages/tiler/data/rgba8_tiled.wm.tiff differ diff --git a/packages/tiler/src/__test__/tile.creation.test.ts b/packages/tiler/src/__test__/tile.creation.test.ts index be5963222..27e4eae0c 100644 --- a/packages/tiler/src/__test__/tile.creation.test.ts +++ b/packages/tiler/src/__test__/tile.creation.test.ts @@ -20,7 +20,8 @@ function getExpectedTile(tileSize: number, x: number, y: number, zoom: number): } describe('TileCreation', () => { - const tiffPath = path.join(__dirname, '../../data/rgba8_tiled.tiff'); + // Tiff that is tiled and has WebMercator alignment for its resolution levels + const tiffPath = path.join(__dirname, '../../data/rgba8_tiled.wm.tiff'); const tiff = new CogTiff(new CogSourceFile(tiffPath)); beforeEach(async () => { @@ -39,7 +40,7 @@ describe('TileCreation', () => { expect(layers.length).toEqual(1); const [layer] = layers; expect(layer.id).toEqual(tiff.source.name); - expect(layer.extract).toEqual({ height: 4, width: 4 }); + expect(layer.extract).toEqual({ height: 16, width: 16 }); expect(layer.resize).toEqual({ height: 2, width: 2 }); expect(layer.x).toEqual(tiler.tileSize / 2); expect(layer.y).toEqual(tiler.tileSize / 2);