Skip to content

geotiff: extract read_vrt and VRT dask helpers into _backends/vrt.py (#1813 step 9) #1887

@brendancol

Description

@brendancol

Reason

read_vrt (xrspatial/geotiff/__init__.py L3814) and its two dask helpers _vrt_chunk_read / _read_vrt_chunked (L4069, L4121) form the VRT read backend, about 350 lines together. The XML parsing already lives in _vrt.py; this PR moves only the orchestration that picks among eager / dask / GPU paths.

Proposal

Move them to xrspatial/geotiff/_backends/vrt.py. Re-export read_vrt from __init__.py. open_geotiff's .vrt routing becomes from ._backends.vrt import read_vrt. The #1813 parity matrix backstops the move.

Refs: #1813.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiAPI design and consistencyenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions