Hi everyone. I was interested in using TileDB for geospatial purposes, so i went through the docs in the appropriate section. I tried ingesting a Sentinel 2 image using python as described in https://docs.tiledb.com/developer/geospatial/rasterio . However, i found myself unable to complete the operation: the files are created and data inserted; however, whenever i try to open the db using rasterio or Gdal, i obtain the following error:
rasterio.errors.RasterioIOError: [TileDB::Query] Error: Subarray out of bounds. subarray: [1, 1, 0, 1023, 0, 1023] domain: [0, 0, 0, 1023, 0, 1023]
I’ve also noticed that ingestion through CLI works fine, but there’s a difference in the schema produced by executing python code: more precisely, the dimension related to image bands in the schema of the db obtained by cli is of the type:
Dimension
- Name: BANDS
- Domain: [1,4]
- Tile extent: 1
While the schema produced by python code in the docs produce:
Dimension
- Name: BANDS
- Domain: [0,3]
- Tile extent: 1
See how the range of the domain is shifted by “1”. I tried to replicate the fact by changing the domain range in code, but in this case i obtain another error:
IndexError: index out of bounds
in this line of code :
arr.data.to_tiledb(arr_output)
which is exactly the one reported in the docs.
Anyone succeeded in such ingestion? Or am I missing something? I’ve even tried with simpler images, like the one proposed in the Gdal tutorial (the geotiff).
Thanks in advance.