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

support nodata parameter for tiling #360

Merged
merged 1 commit into from
Apr 10, 2024
Merged

Conversation

philvarner
Copy link

@philvarner philvarner commented Apr 1, 2024

Related Issue(s):

  • n/a

Proposed Changes:

  1. support nodata parameter in tiling parameters, so that nodata values will be interpreted by titiler as transparent rather than black

PR Checklist:

  • I have added my changes to the CHANGELOG or a CHANGELOG entry is not required.

Testing

  1. Without the nodata parameter set: tile a scene that has a partial coverage from Earth Search sentinel-2-c1-l2a. Notice that the area that is not covered in the scene is black instead of transparent (e.g., black covers the base map)

  2. With the nodata parameter set to 0 for collection sentinel-2-c1-l2a: tile a scene that has a partial coverage from Earth Search sentinel-2-c1-l2a. Notice that the area that is not covered in the scene is transparent and the base map can be seen.

@philvarner philvarner merged commit 4dc895c into main Apr 10, 2024
3 checks passed
@philvarner philvarner deleted the pv/support-nodata-in-tiling branch April 10, 2024 14:12
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.

2 participants