Skip to content

geotiff: refactor read_vrt chunked path to share logic with eager #1825

@brendancol

Description

@brendancol

Follow-up to #1822 / #1814. The chunked VRT read currently duplicates eager-path logic: ComplexSource scale/offset dtype computation (compare _vrt.py:735-745), the integer-sentinel masking branch (eager __init__.py:4033-4064), and the sentinel-cast helper (_vrt_sentinel_for_dtype mirrors _sentinel_for_dtype). Each per-chunk task also re-parses the VRT XML, so an N-chunk read does N+1 XML parses plus N source-path allowlist validations. Refactor into a shared helper and serialise the parsed VRT once into the task graph to remove the duplication and the per-task parse.

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