Skip to content

Commit

Permalink
fix verify print messages
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon committed Sep 12, 2023
1 parent ccc3cea commit f392255
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pmtiles/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,15 @@ func Verify(logger *log.Logger, file string) error {
})

if uint64(addressed_tiles) != header.AddressedTilesCount {
fmt.Printf("Invalid: header AddressedTilesCount=%v but %v tiles addressed.")
fmt.Printf("Invalid: header AddressedTilesCount=%v but %v tiles addressed.", header.AddressedTilesCount, addressed_tiles)
}

if uint64(tile_entries) != header.TileEntriesCount {
fmt.Printf("Invalid: header TileEntriesCount=%v but %v tile entries.")
fmt.Printf("Invalid: header TileEntriesCount=%v but %v tile entries.", header.TileEntriesCount, tile_entries)
}

if offsets.GetCardinality() != header.TileContentsCount {
fmt.Printf("Invalid: header TileContentsCount=%v but %v tile contents.")
fmt.Printf("Invalid: header TileContentsCount=%v but %v tile contents.", header.TileContentsCount, offsets.GetCardinality())
}

if z, _, _ := IdToZxy(min_tile_id); z != header.MinZoom {
Expand Down

0 comments on commit f392255

Please sign in to comment.