stac-extensions / classification

Describes categorical values and bitfields to give values in a file a certain meaning (classification).
Apache License 2.0
11 stars 3 forks source link

eo:bands versus raster:bands #17

Closed drwelby closed 2 years ago

drwelby commented 2 years ago

eo:bands versus raster:bands: is there a distinction that would make it not appropriate to put class information in one of their band objects?

pjhartzell commented 2 years ago

Class information doesn't really fit in eo:bands, does it? Per the Extension spec verbiage, eo:bands is used to describe the available spectral bands in an Asset. Classification rasters don't seem to fit that. Whereas raster:bands is not specific to spectral data.

You can always add raster:bands to an Asset that includes eo:bands, so you can include classification information for spectral data if desired (via a range object for the class value, I guess).

drwelby commented 2 years ago

OK, it seemed redundant to have two ordered "band-stuff" objects but it makes sense and is easy enough to explain.