Commit 6221105
committed
Set NewSubfileType tag on overview IFDs for GDAL compatibility (#1150)
GDAL and rasterio use TIFF tag 254 (NewSubfileType = 1) to identify
overview sub-IFDs. Without it, overviews are written correctly but
invisible to GDAL-based tools. Verified: rasterio and gdalinfo now
see both overview levels, and pixel values match GDAL's own COG
output to within float32 rounding (max relative error < 0.0001%).1 parent 99586e1 commit 6221105
2 files changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
593 | 594 | | |
594 | 595 | | |
595 | 596 | | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
596 | 602 | | |
597 | 603 | | |
598 | 604 | | |
| |||
0 commit comments