Commit f8c72f6
committed
fix(mosaic): raise actionable MosaicError when GDAL bindings missing
_build_vrt imports `from osgeo import gdal`, which is not bundled with
rasterio and not in any optional-dependency group. On systems without
the GDAL Python bindings (including the CI integration runner) the
import would fail with a bare ModuleNotFoundError.
Wrap the import and raise MosaicError with install guidance instead.
The `.tif` path through `_merge_tiles` does not need GDAL bindings, so
the message points users there as a fallback.1 parent 7d170f8 commit f8c72f6
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
107 | 117 | | |
108 | 118 | | |
109 | 119 | | |
| |||
0 commit comments