hotosm / oam-dynamic-tiler

Dynamic tiling of raster data for OpenAerialMap + others
Other
35 stars 12 forks source link

Support for 4-band Uint16 sources #27

Closed mojodna closed 7 years ago

mojodna commented 7 years ago

E.g. s3://hotosm-oam/15APR27052125-S3DS_R02C6-054335918020_01_P001.TIF

Band 1 Block=7660x68 Type=UInt16, ColorInterp=Red
Band 2 Block=7660x68 Type=UInt16, ColorInterp=Green
Band 3 Block=7660x68 Type=UInt16, ColorInterp=Blue
Band 4 Block=7660x68 Type=UInt16, ColorInterp=Undefined

JPEG compression only works by default on 8-bit bands. It can work in 12-bit against 16-bit bands.

We should either enable 12-bit JPEG compression or use DEFLATE for such images.

@smit1678 @cgiovando thoughts?

(Did/should we specify this away for OIN by requiring 8-bit RGB(A) sources?)

smit1678 commented 7 years ago

(Did/should we specify this away for OIN by requiring 8-bit RGB(A) sources?)

@mojodna Saw that you implemented a solution. 👍 I don't think we specify this much more than just saying RGB geotiffs.