Build a GeoParquet overview file: one generalized level per zoom.

Args:
    input: GeoParquet: `EPSG:4326` and all-`EPSG:3857` inputs are read directly;
        `EPSG:3857` parts mixed with other CRSs are reprojected to `EPSG:4326`;
        other CRSs with an EPSG code and usable proj4 definition are
        reprojected to `EPSG:4326` as they are read, otherwise refused
        (use `gpio convert reproject` first).
        Reprojection uses no grid shifts: datum changes can differ from
        PROJ/pyproj by metres (around 100 m for EPSG:27700), while
        same-datum projections match to under a centimetre.
        Pass a file, directory, glob, `s3://`,
        `gs://`, or `https://` URL or prefix, or a list of files.
        First write in-memory data (DuckDB, Polars, PyArrow, or GeoPandas)
        to a GeoParquet file using `gpio` or DuckDB
        `COPY (... ORDER BY ST_Hilbert(...)) TO 'x.parquet'`.
    output: Overview file to write.
    mode: `"duplicating"` makes each level a complete map;
        `"partitioning"` stores each feature once.
    min_zoom: Coarsest zoom.
    max_zoom: Finest zoom, `"auto"` to estimate it (at most {const:AUTO_MAX_ZOOM_CEILING}), or
        `"auto:14"` to cap the estimate at z14.
    gsds: Per-level GSDs in meters, coarse to fine, instead of
        zooms.
    gsd_base: Pixels per tile edge when mapping zooms to GSDs. A
        larger base keeps more detail.
    sort_key: Numeric column used to choose each cell's winner.
    magnitude_ladder: Column whose values set each feature's first
        zoom, largest first.
    ladder_step: Zooms between `magnitude_ladder` values.
    entry_zoom: First zoom for listed values of a column, as
        `"COLUMN:VALUE=ZOOM,VALUE=ZOOM"`, such as
        `"density:5000=4,1000=6"`. Unlisted values use the normal
        visibility gate. Not with `magnitude_ladder`.
    sort_direction: Whether larger or smaller `sort_key` values win.
    class_rank_column: String column ranked by `class_ranks`.
    class_ranks: Finite priority per class; higher values win.
    class_rank_unknown: Priority of unlisted classes, or `None` to
        rank them last.
    no_auto_rank: Skip automatic ranking of Overture roads and
        places.
    preset: `"tippecanoe"` starts from tippecanoe's drop rate, gamma
        and simplification instead of tylertoo's; an option you pass
        still applies. Not with `verbatim`. See
        [the tippecanoe preset](https://geoparquet-io.github.io/tylertoo/guides/tippecanoe/#the-tippecanoe-preset).
    verbatim: Turn off thinning, visibility gates, simplification,
        the density budget, and line coalescing, for pre-aggregated
        or pre-levelled input. Sets the defaults of the options
        below to off; an option you pass still applies.
    simplify_factor: Simplification tolerance, in GSDs, or `None`
        for {default:simplify_factor} (zero with `verbatim`).
    collapse: Represent small polygons as points instead of the
        default placeholder squares.
    collapse_square: Represent small polygons as placeholder
        squares. Squares are the default except with an entry-zoom
        ladder, which uses points unless you set this option.
    no_collapse: Drop small polygons instead of using placeholders.
        This was the default before #745. Output is smaller, but
        polygon coverages have holes at coarse zooms.
    no_simplification_of_shared_nodes: Set `True` to keep junction pins
        and simplify shared polygon borders identically in duplicating
        mode with `simplify_factor` above 0. Defaults to `False`.
    representation: Geometry kind per zoom band, such as
        `"0-7:point,8-14:geom"`.
    cascade: Speed up simplification by deriving each level from
        the next finer one.
    point_thinning: Point grid cell size in GSDs, or `None` for {default:point_thinning}
        ({const:CLUSTER_POINT_THINNING_DEFAULT} with `cluster`, zero with `verbatim`).
    line_thinning: Line grid cell size in GSDs, or `None` for {default:line_thinning}
        (zero with `verbatim`).
    polygon_thinning: Polygon grid cell size in GSDs, or `None` for
        {default:polygon_thinning} (off).
    line_visibility: Smallest line bounding-box diagonal kept, in
        GSDs, or `None` for {default:line_visibility} (zero with `verbatim`).
    polygon_visibility: Smallest polygon bounding-box diagonal kept,
        in GSDs, or `None` for {default:polygon_visibility} (zero with `verbatim`).
    drop_rate: Ratio between feature budgets of adjacent levels.
    drop_gamma: How strongly the budget spares sparse areas.
    density_drop: Apply the per-level feature budget, or `None` for
        `{default:density_drop}` (off with `verbatim`). It thins points only unless
        `drop_lines` or `drop_polygons` is set.
    drop_lines: Apply the feature budget to lines too.
    drop_polygons: Apply the feature budget to polygons too, which
        leaves holes in a polygon coverage. Polygons too small to see
        (outside `square` representation bands), or removed by
        `polygon_thinning`, still become placeholder squares;
        `no_collapse=True` removes them outside `square` bands.
    cluster: Merge each cell's points and add `point_count`.
    accumulate_attributes: Aggregation method for each column in
        a cluster.
    cluster_categories: String column to count per cluster in `COL:value`
        columns, or `None` for off. Requires `cluster`. Keep up to {const:MAX_CLUSTER_CATEGORIES}
        values by frequency, breaking ties by ascending value; count the
        rest, nulls, and literal `other` in `COL:other` when needed.
        Null count cells mean zero. A point outside any cluster counts 1
        for its own value; each row's counts sum to `point_count`.
    coalesce_lines: Join touching same-class lines at coarse levels,
        or `None` for `{default:coalesce_lines}` (off with `verbatim`). `True` is refused in
        partitioning mode.
    coalesce_snap: Largest gap between joined line ends, in GSDs.
    coalesce_junction_angle: Largest turn through a junction, in
        degrees. Set `0` to stop at every junction.
    coalesce_max_level_rows: Skip joining above this line count per
        level to bound memory.
    include_properties: Keep only these property columns and skip
        reading the rest. Columns other options read, such as
        `sort_key`, must stay in the list. `[]` keeps none.
    exclude_properties: Drop these property columns.
        `include_properties` overrides it.
    exclude_all_properties: Drop every property column, writing
        geometry only. `include_properties` overrides it.
    cogp_compat: Write the third-party `cogp` footer key for readers
        of that overview format.
    row_group_size: Maximum rows per output row group.
    row_group_size_policy: `"constant"`, or `"zoom-scaled"` to
        double the row-group cap per zoom coarser than the finest.
    full_column_stats: Keep Parquet statistics for every column.
    read_batch_size: Rows per
        [read batch](https://geoparquet-io.github.io/tylertoo/reference/tuning/#memory).
    bbox: Keep features that intersect this lon/lat box, also one
        ±360° wrap away, as for 0..360 data.
    mask: Keep features whose geometry intersects polygons or
        multipolygons in a GeoJSON (`.geojson` or `.json`, lon/lat per
        RFC 7946) or GeoParquet file, or a shapely geometry (any object
        with `.wkb`). Touching counts. A feature also matches when its
        copy one world width away (±360°) intersects the mask, as with
        `bbox`. The mask's bbox skips row groups like `bbox`.
        Combines with `bbox` and `filter` by AND.
        A GeoParquet mask uses its declared CRS and the same reprojection
        rules as input. EPSG:4326 masks are converted to EPSG:3857 for 3857
        input and vice versa, vertex by vertex.
        WKB/shapely masks have no CRS: use EPSG:3857 for EPSG:3857 input,
        otherwise lon/lat EPSG:4326, including for reprojected input.
    filter: SQL-style predicate, such as `"confidence > 0.8"`.
    profile: [Memory profile](https://geoparquet-io.github.io/tylertoo/reference/tuning/#memory):
        `"speed"` holds everything in RAM, `"bounded"` uses disk and
        holds the least, and `"auto"` sizes to the machine's memory.
        Wheels use mimalloc. Under `"bounded"`, it purges freed pages
        immediately to reduce peak memory at a speed cost. The setting
        applies for the duration of each `"bounded"` call and is then
        restored; overlapping calls on other threads share it while any
        `"bounded"` call runs. A non-musl source build uses the system allocator with
        `maturin build --no-default-features` (musl always uses mimalloc).
    workers: [Worker threads](https://geoparquet-io.github.io/tylertoo/reference/tuning/#memory)
        for the whole run. `None` (default) uses `RAYON_NUM_THREADS`
        when set, else every core under `"auto"` and `"speed"` and at
        most {const:WORKER_THREADS_MAX} under `"bounded"`. `0` is an error. The pool is
        process-wide, so the first call in a process sets it and later
        calls keep it.
    memory_limit: [Memory limit](https://geoparquet-io.github.io/tylertoo/reference/tuning/#memory)
        in bytes, used in place of the detected
        available memory (cgroup limit or `MemAvailable`). It overrides
        `TYLERTOO_AUTO_MEM_LIMIT_BYTES`. `0` is an error. The limit is
        process-wide: it stays in force for later calls in the process
        until another call sets one.
    in_flight_batches: [Concurrent batches](https://geoparquet-io.github.io/tylertoo/reference/tuning/#memory),
        or `0` to size from the CPU count.
    read_workers: [Reader threads](https://geoparquet-io.github.io/tylertoo/reference/tuning/#memory),
        or `0` to size from the CPU count.
    spill_dir: [Staging directory](https://geoparquet-io.github.io/tylertoo/reference/tuning/#memory)
        for remote input.
    save_plan: Save the convert plan (pass 1 and the level
        assignment) here and continue converting.
    plan: Reuse a saved convert plan, skipping pass 1. Its
        fingerprint must match this run's version, options and
        inputs.

Returns:
    Counts and sizes for each level written, with input diagnostics.

Raises:
    ConfigError: Invalid or conflicting options, refused before any
        input is read.
    ValueError: A missing or mistyped column, a property selection
        the input cannot satisfy, an unsupported projection, or
        almost nothing to tile.
    MemoryError: Too little memory for this input.
    RuntimeError: Reading or writing failed.

Example:
    >>> report = overview(
    ...     "buildings.parquet", "overview.parquet", max_zoom=10
    ... )
    >>> report["input_features"]
    1000
