This is probably a good chunk of work. We'll need to
We don't support strip-oriented TIFFs, but some "COGs" are so small that they only have a single tile and don't encode tile_height and tile_width values in the IFD.
> rio cogeo info https://data.source.coop/clarkcga/multi-temporal-crop-classification/hls/chip_002_060_merged.tif
Driver: GTiff
File: https://data.source.coop/clarkcga/multi-temporal-crop-classification/hls/chip_002_060_merged.tif
COG: True
Compression: None
ColorSpace: None
Profile
Width: 224
Height: 224
Bands: 18
Tiled: False
Dtype: int16
NoData: -9999.0
Alpha Band: False
Internal Mask: False
Interleave: PIXEL
ColorMap: False
ColorInterp: ('gray', 'undefined', 'undefined', 'undefined', 'undefined', 'undefined', 'undefined', 'undefined', 'undefined', 'undefined', 'undefined', 'undefined', 'undefined', 'undefined', 'undefined', 'undefined', 'undefined', 'undefined')
Scales: (1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0)
Offsets: (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
Geo
Crs: EPSG:5070
Origin: (-1952895.0, 3159165.0)
Resolution: (30.0, -30.0)
BoundingBox: (-1952895.0, 3152445.0, -1946175.0, 3159165.0)
MinZoom: 11
MaxZoom: 12
Image Metadata
AREA_OR_POINT: Area
Image Structure
INTERLEAVE: PIXEL
Band 1
ColorInterp: gray
Band 2
ColorInterp: undefined
Band 3
ColorInterp: undefined
Band 4
ColorInterp: undefined
Band 5
ColorInterp: undefined
Band 6
ColorInterp: undefined
Band 7
ColorInterp: undefined
Band 8
ColorInterp: undefined
Band 9
ColorInterp: undefined
Band 10
ColorInterp: undefined
Band 11
ColorInterp: undefined
Band 12
ColorInterp: undefined
Band 13
ColorInterp: undefined
Band 14
ColorInterp: undefined
Band 15
ColorInterp: undefined
Band 16
ColorInterp: undefined
Band 17
ColorInterp: undefined
Band 18
ColorInterp: undefined
IFD
Id Size BlockSize Decimation
0 224x224 224x1 0
This is probably a good chunk of work. We'll need to
Should mirror developmentseed/async-geotiff#106
We don't support strip-oriented TIFFs, but some "COGs" are so small that they only have a single tile and don't encode
tile_heightandtile_widthvalues in the IFD.For example from source-cooperative/cog-viewer#5