Closed zakjan closed 1 year ago
Searching for references about color palette files in other tools, it seems there is no common standard or MIME type. I'm not sure whether the palette asset role can recommend a particular format or a library to parse it, so I haven't included it yet. @cholmes What do you think?
The largest collection of color palettes cpt-city provides palettes in 11 different formats. There is a good formats reference as well. GDAL-compatible format (cpt
or pg
) seems safe to recommend. Some formats can be converted using cptutils or cptutils-online.
Found download stats by format! So it's cpt
the most used indeed.
Would this make more sense to be added to the raster or classification extension instead?
Yeah, makes sense. Asset role palette
or raster:palette
?
palette
, rel types are not prefixed.
@zakjan Do you still plan to open a PR for this in the raster and/or classification extensions?
Hi @m-mohr, I'm sorry for inactivity, I'm totally swamped these days :( Have you seen any interest about this topic from anyone else?
@zakjan Unfortunately not so much, so take your time, I guess....
I'm going to close this for now, thanks.
It's so funny how like 30mins after you closed this, someone asked me about it. I forwarded this link, so maybe someone will chime in soon.
Haha :) Anyway, this is only about standardizing a STAC field if there is more interest about it. Anyone can still use it as a custom field.
Regarding the implementation, I've implemented https://github.com/weatherlayers/cpt2js for parsing the palette files.
Related Issue(s): https://github.com/stac-extensions/raster/issues/17
Proposed Changes:
PR Checklist: