linz / basemaps

NZ’s authoritative and open digital basemap service for LINZ and the public.
https://basemaps.linz.govt.nz
Other
92 stars 16 forks source link

fix(config-loader): data type is optional for tiffs #3287

Closed blacha closed 2 months ago

blacha commented 2 months ago

Motivation

The tiff tag SampleFormat is optional and should be treated as a uint if not found

ref: https://www.awaresystems.be/imaging/tiff/tifftags/sampleformat.html

A reader would typically treat an image with undefined data as if the field were not present (i.e. as unsigned integer data).

Modification

Assume sample format is a uint when SampleFormat is not defined.

Checklist

If not applicable, provide explanation of why.