Skip to content

Extract large bounding box with --maxzoom fails without --overfetch=0 #225

@bayview

Description

@bayview

This extract command fails with main.go:179: Failed to extract, EOF

Repeatable, and also occurs with a local copy of the 120GB source data.

./pmtiles extract https://build.protomaps.com/20250324.pmtiles basemap.pmtiles --bbox=-180,-60,180,85 --maxzoom=5
fetching 1 dirs, 1 chunks, 1 requests
Region tiles 993, result tile entries 840
fetching 840 tiles, 15 chunks, 1 requests
fetching chunks 100% |██████████████████████████████████████████████████████████████████████████████| (15/15 MB, 1.4 MB/s)         
2025/03/29 15:29:28 main.go:179: Failed to extract, EOF

The same request succeeds if I set overfetch to zero:

./pmtiles extract https://build.protomaps.com/20250324.pmtiles basemap.pmtiles --bbox=-180,-60,180,85 --overfetch=0 --maxzoom=5
fetching 1 dirs, 1 chunks, 1 requests
Region tiles 993, result tile entries 840
fetching 840 tiles, 15 chunks, 15 requests
fetching chunks 100% |███████████████████████████████████████████████████████████████████████████████| (14/14 MB, 1.7 MB/s)        
Completed in 16.22702957s with 4 download threads (51.765480846691545 tiles/s).
Extract required 19 total requests.
Extract transferred 15 MB (overfetch 0) for an archive size of 15 MB

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions