Note: Treating directory as uncompressed Directory has 9577 entries === Testing TileID <-> z/x/y conversion === Format: TileID | z/x/y from PHP | Reverse TileID | Match? ------------------------------------------------------------ 9 | 2/ 0/ 2 | 9 | ✓ 215853508 | 14/5400/9715 | 215853508 | ✓ 217106482 | 14/4453/9386 | 217106482 | ✓ 217124409 | 14/4566/9372 | 217124409 | ✓ 217124481 | 14/4552/9370 | 217124481 | ✓ 217127821 | 14/4590/9290 | 217127821 | ✓ 217127911 | 14/4582/9282 | 217127911 | ✓ 272807202 | 14/14909/12742 | 272807202 | ✓ 388096501 | 15/3219/5811 | 388096501 | ✓ 388096638 | 15/3224/5801 | 388096638 | ✓ 1455796230370 | 20/932586/86649 | 1455796230370 | ✓ 1455914263945 | 20/921402/79612 | 1455914263945 | ✓ 1455972300170 | 20/918467/72516 | 1455972300170 | ✓ 1456080211166 | 20/932010/66395 | 1456080211166 | ✓ 1456080227542 | 20/932009/66520 | 1456080227542 | ✓ 1456080227542 | 20/932009/66520 | 1456080227542 | ✓ 1456080227542 | 20/932009/66520 | 1456080227542 | ✓ 1456080227542 | 20/932009/66520 | 1456080227542 | ✓ 1456080227564 | 20/932014/66521 | 1456080227564 | ✓ 1456080227641 | 20/932003/66521 | 1456080227641 | ✓ === Now get same tiles from pmtiles CLI === Run this command to compare: pmtiles show raster.pmtiles --tiles | head -20 Expected format from CLI: z/x/y Our format from above: TileID -> z/x/y conversion If the z/x/y values DON'T match, the Hilbert conversion is wrong!