-
Notifications
You must be signed in to change notification settings - Fork 33
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
Accessing gdal-created metadata from python #251
Comments
@djhoese there are several ways to get to this metadata with Python. You can open the However an easier way is to use Rasterio, we have more detail about the Rasterio integration with TileDB here. Once you are using Rasterio with GDAL3 and TileDB then the commands We are moving away from using a sidecar file to using TileDB array metadata (in v1.7+), however this does not impact the ways to access this metadata in GDAL or Rasterio. |
Thanks @normanb. I have GDAL 3.0.2 from conda-forge and tiledb and I'm not able to access the metadata in the .xml file. I tried XML Contents:
Open GeoTIFF with xarray:
Open TileDB Array that was created with
|
@djhoese I am able to see the datetime field with For rasterio, these fields are seen as tag, I added support for additional tiff tags to be reported in this PR against xarray - pydata/xarray#3249 but it looks like I need to make this more general for other formats within rasterio, I can do that and create an example. |
For rasterio I am able to see all the metadata tags (including datetime) but this does need to be copied over for xarray. I have pasted below my interactive
|
Please comment and reopen if needed. |
I have a tiledb array that I've created from a geotiff using
gdal_translate
. When I open the array in python I can't find a way to access some of the metadata thatgdalinfo
is able to print out:It seems that this information is added to the
.aux.xml
file inside the tiledb directory. I'm guessing tiledb-py doesn't use that at all? Similar to how translating a geotiff to a PNG makes an aux.xml that is not part of the PNG standard but can still be picked up by GDAL?The text was updated successfully, but these errors were encountered: