Closed banesullivan-kobold closed 4 days ago
You can specify the "sourceName" of each source, which I think lets you do this.
Ooh! This is a part of the YAML spec itself, I see now!
However, this is leading to an error with the gdal
source:
TypeError: large_image.tilesource.base.TileSource.tileIterator() got multiple values for keyword argument 'resample'
Hmm.. The fix is probably
diff --git a/sources/gdal/large_image_source_gdal/__init__.py b/sources/gdal/large_image_source_gdal/__init__.py
index ba484e9e..2033eeb5 100644
--- a/sources/gdal/large_image_source_gdal/__init__.py
+++ b/sources/gdal/large_image_source_gdal/__init__.py
@@ -879,6 +879,9 @@ class GDALFileTileSource(GDALBaseFileTileSource, metaclass=LruCacheMetaclass):
if not isinstance(format, (tuple, set, list)):
format = (format, )
# The tile iterator handles determining the output region
+ if 'resample' in kwargs:
+ kwargs = kwargs.copy()
+ kwargs.pop('resample')
iterInfo = self.tileIterator(format=TILE_FORMAT_NUMPY, resample=None, **kwargs).info
# Only use gdal.Warp of the original image if the region has not been
# styled.
However, there are some quite different results when using the GDALFileTileSource
source vs. the VipsFileTileSource
. behind the MultiFileTileSource
. I'll try to make a reproducible example
However, there are some quite different results when using the
GDALFileTileSource
source vs. theVipsFileTileSource
. behind theMultiFileTileSource
. I'll try to make a reproducible example
For probably bad historical reasons, our geospatial sources (even with non-geospatial data) have a default style. Try adding style: {}
to the gdal sources.
Try adding style: {} to the gdal sources.
Aha this did it! Thank you!!
Could we specify to the
MultiFileTileSource
to use theGDALFileTileSource
to open each of the images?I have a lot of pyramidal tiffs (non-geospatial) and I compose them in YAML to stitch them together for use with
MultiFileTileSource
. However the images are all stored on S3 and I have hundreds of thousands of images. I want to be able to use GDAL's virtual file system and/vsis3/
for performant reads directly from S3 (no downloading of data locally)I think this is feasible from my look over the MultiFileTileSource, but would appreciate any clarifying details. Or is it possible to performantly load pyramidal tiffs from cloud storage with another tile source?