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

Composite geospatial image from multiple files #680

Open
banesullivan opened this issue Nov 15, 2021 · 4 comments
Open

Composite geospatial image from multiple files #680

banesullivan opened this issue Nov 15, 2021 · 4 comments

Comments

@banesullivan
Copy link
Contributor

banesullivan commented Nov 15, 2021

Following up on ResonantGeoData/ResonantGeoData#421 (comment)

Would it be possible to have large image use separate TIFs to composite into a single RGB image?

Use case: making an RGB tile server from Landsat images where each band of the raster is in a separate TIF.

A possible workaround: create a VRT for these scenarios, specifying the RGB bands

@manthey
Copy link
Member

manthey commented Nov 15, 2021

There are two approaches to this:

(1) create a new "multi" tile source (which would require a file saying how images are composited toegther). This would be like a VRT file but have the flexibility of using any tile source large_image supports.

(2) allow specifying other files as part of the style specification. That is, something like: {bands: [{palette: ['black', 'red']}, {file: <second file>, palette: ['black', 'green']}, {file: <third file>, palette: ['black', 'blue']}]}

The virtue of (1) is that we could construct multi-frame sources fairly intelligently (e.g., you have a time series that you could assemble as frames AND composite different color bands).

The virtue of (2) is the dynamic nature of it and lack of an extra control file. Probably once we implement (1), also supporting (2) will be nearly trivial.

This was referenced Dec 16, 2021
@manthey
Copy link
Member

manthey commented Jan 28, 2022

A substantial start to this has been added in #764. It still needs to (a) support general transforms, (b) support cropping, (c) support geospatial data. Ideally, we'd also support an "inline" version of this, so you wouldn't need an explicit source file.

@manthey
Copy link
Member

manthey commented Jan 4, 2024

With #1415, the only missing feature is support for geospatial data.

@manthey
Copy link
Member

manthey commented Mar 21, 2024

Retitling this to indicate remaining scope.

@manthey manthey changed the title Composite image from multiple files Composite geospatial image from multiple files Mar 21, 2024
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

2 participants