stac-utils / stac-layer

Visualize a STAC Item or Collection on a Leaflet Map
Creative Commons Zero v1.0 Universal
47 stars 11 forks source link

Better display of multispectral / surface reflectance data #62

Closed m-mohr closed 5 months ago

m-mohr commented 1 year ago

@cholmes reported at https://github.com/radiantearth/stac-browser/issues/309 :

STAC Browser works great with visual imagery, and I think in theory it'll support full bit depth multispectral data, but on the planet open data it seems to struggle.

This 8 band planetscope image works fine on visual, but when you switch the asset to the AnalyticMS_8b_SR nothing gets displayed: Screenshot 2023-04-19 at 9 38 45 PM

This skysat image has similar behavior for me - tested on Brave, chrome and safari. These will sometimes totally hang, displaying nothing in the tab.

Looking at the console I do see errors like: 'failed to load resource 404' on https://storage.googleapis.com/open-cogs/planet-stac/education/panama-bloom/20220310_154305_84_2402_3B_Visual.tif.ovr - but that happens on visual and analytic, so doesn't seem like the cause. Though I feel like it's weird it's trying to those? They're COG's with overviews embedded.

I've got some that display, like:

https://radiantearth.github.io/stac-browser/#/external/www.planet.com/data/stac/open-skysat-data/20201211_103040_ssc12_u0001/20201211_103040_ssc12_u0001.json?.asset=asset-analytic_sr_udm2%3Aortho_analytic_sr But the display is still off:

Screenshot 2023-04-19 at 9 43 07 PM

It does seem like with band info and stats it should be able to display a bit better?

Response:

It could be that this is already solved in the stac-js rewrite of stac-layer, I need to check this later.

m-mohr commented 5 months ago

Closing as duplicate of #12