You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reject VRT sources under stable_only=True (#2443) (#2447)
* Reject VRT sources under stable_only=True (#2443)
Add a `stable_only: bool = False` kwarg to `open_geotiff`,
`read_geotiff_dask`, `read_geotiff_gpu`, and `read_vrt`. When True,
the VRT path raises a typed `VRTStableSourcesOnlyError` (a
`GeoTIFFAmbiguousMetadataError` subclass) before any pixel decode.
The message names the offending VRT path and the
`allow_experimental_codecs` unlock so callers can opt into the
broader tier set explicitly. Flips the
`test_release_gate_negative_mixed_tier_vrt_children` xfail from epic
#2342.
* Address review nits: defensive VRT-extension check, tighter test asserts (#2443)
- ``_validate_stable_only_vrt`` now passes through silently when the
source is not a ``.vrt`` path, so a future call site that forwards a
non-VRT path cannot trip a mislabeled "VRT source" rejection. The
docstring spells out the pass-through contract.
- ``test_vrt_stable_only_2443.py`` pins the downstream
``VRTUnsupportedError`` on the default-false and ``allow_experimental_codecs``-unlock
paths so a future refactor cannot silently broaden either branch past
intent.
0 commit comments