Build one PMTiles archive from per-zoom-band inputs.

Each band names a zoom range, an input, and an MVT layer. Bands of
different layers may share zooms, giving several layers per tile;
bands of one layer must not overlap. The output is overwritten if
it exists.

Args:
    bands: Band specs as `"LO-HI:[SYSTEM:]INPUT[:LAYER]"`,
        such as `"0-7:countries.parquet:admin"`. `INPUT` is a
        GeoParquet source or a PMTiles archive for zooms `LO` to
        `HI`; `LAYER` defaults to the input's file stem. See the
        [pyramid command](https://geoparquet-io.github.io/tylertoo/reference/cli/#tylertoo-pyramid)
        for the `LO-HI=[SYSTEM=]INPUT[=LAYER]` form. Omit `SYSTEM`
        to tile the input; `grid`, `h3`, `s2`, or `a5` aggregates
        GeoParquet features into cells per zoom, counting each feature
        at its centroid. An input named `grid`, `h3`, `s2`, or `a5`
        needs a path prefix, such as `./h3`.
        Cells cover about a 4x4-pixel block of a 256-pixel tile at the
        equator. Grid uses zoom + 6 (capped at 30); the other systems
        choose resolutions by equatorial cell area. Each feature counts
        in the cell holding its centroid at every zoom. Each row has a
        `cell` id token and `point_count`.
        Cell tables are tiled verbatim, even with `generalize=True`.
        Cell bands require GeoParquet, not PMTiles, and reject the
        convert filter and bbox options.
    output: PMTiles archive to write.
    generalize: Generalize each GeoParquet band, as `overview()`
        does. By default each band is tiled verbatim, keeping every
        feature, for input already made for its zooms.
    tile_size_limit: Maximum raw tile size in bytes for bands tiled
        here; `"auto"`, `0` and `None` are no limit, so every
        feature is kept.
    feature_order: Paint order within a tile for GeoParquet bands;
        see `export_pmtiles()`. A band without that column keeps
        input order, with a warning.
    work_dir: Directory for temporary per-band files, deleted after
        the build, or `None` for the system temporary directory.
    accumulate_attributes: Aggregation method for each numeric column,
        `sum`, `min`, `max`, or `mean`. Applies to
        every cell band and requires one. Each column's result is a
        Float64 column of the same name.
    cluster_categories: Column to count by category in every cell band;
        requires a cell band. Writes `COL:label` count columns for the
        top categories plus `other`, ranked as in `tiles()`.
        Zero counts are null.
    allow_missing_zooms: Accept a pre-tiled band with fewer zooms
        than declared. Missing zooms render empty.
    name: The output's tileset name. Unset, the PMTiles bands'
        name is kept when they agree and left out when they don't.
    description: Description for the output, inherited the same way.
    attribution: Attribution text or HTML for the output, `""`
        included. Unset, every PMTiles band's credit is kept, joined
        with `" | "`; GeoParquet bands carry none.
    max_compressed_tile_size: Maximum gzip-compressed tile size in
        bytes for bands tiled here; `"auto"`, `0` and `None` are no
        limit.
    size_valve: See `export_pmtiles()`.
    valve_scope: See `export_pmtiles()`.
    valve_max_step: See `export_pmtiles()`.
    coverage_fill: See `export_pmtiles()`.
    max_zoom_simplify_factor: See `export_pmtiles()`. Bands default
        to `0`: nothing is simplified at the max zoom. `None` selects
        this default; an explicit factor applies to lines and polygons.
    simple_clip_fastpath: See `export_pmtiles()`.
    tile_buffer: See `export_pmtiles()`.
    extent: See `export_pmtiles()`.
    partition_wave: See `export_pmtiles()`.
    feature_id: See `export_pmtiles()`. Every GeoParquet band must
        have the column.
    include_properties: Keep only these properties in the tiles of
        GeoParquet bands. `[]` keeps none.
    exclude_properties: Drop these properties from the tiles of
        GeoParquet bands. `include_properties` overrides it.
    exclude_all_properties: Drop every property from the tiles of
        GeoParquet bands. `include_properties` overrides it.
    profile: Memory profile, as for `convert()`, applied to every
        GeoParquet band's convert and export. Changes memory use,
        not output bytes.
    workers: See `export_pmtiles()`.
    memory_limit: See `export_pmtiles()`.
    tile_format: See `export_pmtiles()`. Every band must have this
        format.
    mlt_profile: See `export_pmtiles()`.

Returns:
    Tile counts per band, with merge diagnostics and the metadata
    written.

Raises:
    ConfigError: An option out of range or refused.
    ValueError: A malformed band spec, overlapping bands of one
        layer, or a missing band input.
    MemoryError: A band's conversion or export ran out of its memory
        budget.
    RuntimeError: A band failed to convert, export, or merge for any
        other reason. A band's error takes the class of its cause, so a
        band with bad input raises ValueError, as convert() would.

Example:
    >>> report = pyramid(
    ...     [
    ...         "8-9:buildings.parquet:coarse",
    ...         "10-12:buildings.parquet:fine",
    ...     ],
    ...     "pyramid.pmtiles",
    ... )
    >>> [band["layer"] for band in report["bands"]]
    ['coarse', 'fine']
