Conversation
Overview dataclass
geospatial-jeff
left a comment
There was a problem hiding this comment.
Do we want to support fetching tiles concurrently (potentially with request merging) from different overview levels? Or are we ok with a simpler API where we only support fetching multiple tiles (in a way that allows request merging) from a single IFD?
Simpler API to fetch from specific IFDs is better, let libraries like rio-tiler decide when it's best to fetch which IFD (see here). We could add some helper functions like this to async-geotiff in the future if it becomes useful.
|
I like this better because it's one less layer of abstraction, you could of course still call through the overview too. geotiff = await GeoTIFF.open()
# calls geotiff.overview[z].*
tile = await geotiff.fetch_tile(x, y, z)
tiles = await geotiff.fetch_tiles(xs, ys, z) |
👍 This is the question I was trying to ask in the intro |
Though here, one complexity is that there's a difference between |
|
Yeah I personally don't need to have materialized overviews (at least in a first version of async-tiff). Just having a way to get the metadata within the GeoTIFF object would be great.
Maybe we will need a way to |
I like the idea of "grouping" them with the |
I'm thinking that the top-level
GeoTIFFinstance will create childOverviewclasses (potentially on creation, in theGeoTIFFconstructor).Then the
Overviewclasses will be defined with their own methods. Like here we define the transform in terms of the full image's transform.So thinking of like
Questions:
@dataclass? Not sure what the expected benefit of that iscc @geospatial-jeff