Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests for index request query parameters #7

Open
Tracked by #3
abarciauskas-bgse opened this issue Jun 5, 2024 · 0 comments
Open
Tracked by #3

Tests for index request query parameters #7

abarciauskas-bgse opened this issue Jun 5, 2024 · 0 comments

Comments

@abarciauskas-bgse
Copy link

Add a tests for index parameters since its a bit of unclear how that is intended to work:

  1. layer_dependency is a request parameter for tile endpoint - this is part of the titiler-stacapi-mspc factory.py
  2. layer_dependency is of type AssetsBidxExprParams (which inherits both AssetsParams, BidxParams). As such, assets= or expression= is required.
  3. When assets= is passed, those assets are used in tiling
  4. If assets_indexes is passed, the value passed in the request args is then parsed to a dictionary via parse_asset_indexes
  5. indexes could also be passed as part of the BidxParams class and this is used as a fall back

AssetsBidxExprParams is part of titiler core. So the functionality that should be tested here is just that when assets, asset_indexes and indexes are present in the request, they are passed as expected to the Reader.tile method in AssetsReader and not passed at all to the XarrayReader.tile method.

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

No branches or pull requests

1 participant