Skip to content

schema: added asset_as_band property in render object - #20

Merged
emmanuelmathot merged 23 commits into
stac-extensions:mainfrom
Terradue:main
Sep 22, 2026
Merged

emmanuelmathot merged 23 commits into
stac-extensions:mainfrom
Terradue:main

Conversation

@sim13pods

Copy link
Copy Markdown
Contributor

asset_as_band (bool): tell rio-tiler that each asset is a 1 band dataset, so expression Asset1/Asset2 can be passed.

Resolves: #12
Implements: https://learn.microsoft.com/en-us/azure/planetary-computer/render-configuration?tabs=restapi#1-expressions
Implements: https://developmentseed.org/titiler/endpoints/stac/#tiles
Co-authored-by: Fabrice Brito fabrice.brito@terradue.com

asset_as_band (bool): tell rio-tiler that each asset is a 1 band dataset, so expression Asset1/Asset2 can be passed.

Refs: stac-extensions#12
Implements: https://learn.microsoft.com/en-us/azure/planetary-computer/render-configuration?tabs=restapi#1-expressions
Implements: https://developmentseed.org/titiler/endpoints/stac/#tiles
Co-authored-by: Fabrice Brito <fabrice.brito@terradue.com>
@sim13pods

Copy link
Copy Markdown
Contributor Author

@emmanuelmathot cannot reproduce locally the error:

$ npm install && npm test
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated sliced@1.0.1: Unsupported
npm warn deprecated figgy-pudding@3.5.2: This module is no longer supported.
npm warn deprecated trim@0.0.1: Use String.prototype.trim() instead
npm warn deprecated libnpmconfig@1.2.1: This module is not used anymore. npm config is parsed by npm itself and by @npmcli/config
npm warn deprecated glob@7.2.3: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me

added 257 packages, and audited 258 packages in 14s

131 packages are looking for funding
  run `npm fund` for details

4 high severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

> stac-extensions@2.0.0 test
> npm run check-markdown && npm run check-examples


> stac-extensions@2.0.0 check-markdown
> remark . -f -r .github/remark.yaml

CHANGELOG.md: no issues found
README.md: no issues found

> stac-extensions@2.0.0 check-examples
> stac-node-validator . --lint --verbose --schemaMap https://stac-extensions.github.io/render/v2.0.0/schema.json=./json-schema/schema.json --schemaMap https://stac-extensions.github.io/virtual-assets/v1.0.0/schema.json=./json-schema/schema-vrt.json

STAC Node Validator v1.3.2

- /home/stripodi/Documents/stac-extensions/render/examples/collection.json
-- Lint: File is well-formed
-- STAC Version: 1.0.0
--- Collection: valid
--- https://stac-extensions.github.io/item-assets/v1.0.0/schema.json: valid
--- https://stac-extensions.github.io/render/v2.0.0/schema.json: valid
--- https://stac-extensions.github.io/virtual-assets/v1.0.0/schema.json: valid

- /home/stripodi/Documents/stac-extensions/render/examples/item-landsat8.json
-- Lint: File is well-formed
-- STAC Version: 1.0.0
--- Item: valid
--- https://stac-extensions.github.io/eo/v1.0.0/schema.json: valid
--- https://stac-extensions.github.io/projection/v1.0.0/schema.json: valid
--- https://stac-extensions.github.io/view/v1.0.0/schema.json: valid
--- https://stac-extensions.github.io/render/v2.0.0/schema.json: valid
--- https://stac-extensions.github.io/virtual-assets/v1.0.0/schema.json: valid
--- https://stac-extensions.github.io/web-map-links/v1.2.0/schema.json: valid

- /home/stripodi/Documents/stac-extensions/render/examples/item-sentinel2.json
-- Lint: File is well-formed
-- STAC Version: 1.0.0
--- Item: valid
--- https://stac-extensions.github.io/eo/v1.0.0/schema.json: valid
--- https://stac-extensions.github.io/view/v1.0.0/schema.json: valid
--- https://stac-extensions.github.io/projection/v1.0.0/schema.json: valid
--- https://stac-extensions.github.io/raster/v1.0.0/schema.json: valid
--- https://stac-extensions.github.io/render/v2.0.0/schema.json: valid
--- https://stac-extensions.github.io/virtual-assets/v1.0.0/schema.json: valid

Files: 3
Valid: 3
Invalid: 0
Malformed: 0

Not sure what the error is about in the pipeline

@emmanuelmathot emmanuelmathot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good to me but an example would help to understand how it works

Co-authored-by: Leonardo Mizzoni <leonardo.mizzoni@terradue.com>
Refs: stac-extensions#12
Refs: stac-extensions#20 (review)
@sim13pods

Copy link
Copy Markdown
Contributor Author

@emmanuelmathot requested example added

@emmanuelmathot emmanuelmathot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest simplifying the examlple to focus on render

Comment thread examples/item-with-asset_as_band.json Outdated
Comment thread examples/item-with-asset_as_band.json
Comment thread examples/item-with-asset_as_band.json
Comment thread examples/item-with-asset_as_band.json Outdated
Comment thread examples/item-with-asset_as_band.json
Comment thread examples/item-with-asset_as_band.json Outdated
Comment thread examples/item-with-asset_as_band.json Outdated
Comment thread examples/item-with-asset_as_band.json Outdated
Comment thread examples/item-with-asset_as_band.json Outdated
Comment thread examples/item-with-asset_as_band.json Outdated
Co-authored-by: Emmanuel Mathot <emmanuel.mathot@gmail.com>
@emmanuelmathot

emmanuelmathot commented Sep 21, 2026 •

Copy link
Copy Markdown
Member

@sim13pods I cannot push on your branch the simplified example (you did not allow changes for reviewers). So that's why I proposed suggestions. Please apply them to have a simpler example., Then we are good to merge.

sim13pods and others added 15 commits September 21, 2026 17:26
Co-authored-by: Emmanuel Mathot <emmanuel.mathot@gmail.com>
Co-authored-by: Emmanuel Mathot <emmanuel.mathot@gmail.com>
Co-authored-by: Emmanuel Mathot <emmanuel.mathot@gmail.com>
Co-authored-by: Emmanuel Mathot <emmanuel.mathot@gmail.com>
Co-authored-by: Emmanuel Mathot <emmanuel.mathot@gmail.com>
Co-authored-by: Emmanuel Mathot <emmanuel.mathot@gmail.com>
Co-authored-by: Emmanuel Mathot <emmanuel.mathot@gmail.com>
Co-authored-by: Emmanuel Mathot <emmanuel.mathot@gmail.com>
Co-authored-by: Emmanuel Mathot <emmanuel.mathot@gmail.com>
Co-authored-by: Emmanuel Mathot <emmanuel.mathot@gmail.com>
Co-authored-by: Emmanuel Mathot <emmanuel.mathot@gmail.com>
Co-authored-by: Emmanuel Mathot <emmanuel.mathot@gmail.com>
Co-authored-by: Emmanuel Mathot <emmanuel.mathot@gmail.com>
Co-authored-by: Emmanuel Mathot <emmanuel.mathot@gmail.com>
Co-authored-by: Emmanuel Mathot <emmanuel.mathot@gmail.com>

@emmanuelmathot emmanuelmathot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the histograms. They are huge and there is no value adding them here and may confuse adopters.

@sim13pods

Copy link
Copy Markdown
Contributor Author

@emmanuelmathot histograms removed (GitHub editor somehow stopped working) and CHANGELOG updated

@emmanuelmathot emmanuelmathot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sim13pods please check the asset_as_band values in your example. You can test with npm test

@emmanuelmathot
emmanuelmathot merged commit 21665e9 into stac-extensions:main Sep 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add "asset_as_band" to schema

2 participants