mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 02:41:09 +00:00
python writer: fix bug in construction of leaf dir entries
This commit is contained in:
@@ -26,7 +26,7 @@ def build_roots_leaves(entries, leaf_size):
|
||||
num_leaves += 1
|
||||
serialized = serialize_directory(entries[i : i + leaf_size])
|
||||
root_entries.append(
|
||||
Entry(entries[0].tile_id, len(leaves_bytes), len(serialized), 0)
|
||||
Entry(entries[i].tile_id, len(leaves_bytes), len(serialized), 0)
|
||||
)
|
||||
leaves_bytes += serialized
|
||||
i += leaf_size
|
||||
|
||||
Reference in New Issue
Block a user