hotosm / oam-dynamic-tiler

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

Normalize data types before compositing #26

Open mojodna opened 7 years ago

mojodna commented 7 years ago

Related to #25, if sources are composited and they have different data types, all hell will break loose.

mojodna commented 7 years ago

This is a side effect of thinking about sources as "images" when it's possible that they have a variety of bands (not just 3 or 4) and data types. It probably makes sense to normalize into "image" form, though keeping them as data and targeting bands would facilitate band math done outside GDAL (though with the ability to define Python functions in a VRT, that's probably ok).