Skip to content

Commit

Permalink
convert: set TileCompression header value for MVT archives
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon committed Oct 31, 2022
1 parent 35f0ce9 commit 4abda8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pmtiles/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,9 @@ func finalize(logger *log.Logger, resolver *Resolver, header HeaderV3, tmpfile *

header.Clustered = true
header.InternalCompression = Gzip
if header.TileType == Mvt {
header.TileCompression = Gzip
}

header.RootOffset = HEADERV3_LEN_BYTES
header.RootLength = uint64(len(root_bytes))
Expand Down

0 comments on commit 4abda8c

Please sign in to comment.