[gdal-dev] Issue with sub-dataset suffix
Simon Eves
simon.eves at heavy.ai
Fri Jul 21 15:56:54 PDT 2023
OK, I get it now.
So the "filename" to open is the exact SUBDATASET_X_NAME string from the
metadata. It seems you can safely omit the quotes (at least in the case of
this file), which is perhaps part of my confusion.
Sorry, that makes sense in hindsight.
Thank you, as ever, for your prompt assistance!
Simon
On Fri, Jul 21, 2023 at 3:35 PM Even Rouault <even.rouault at spatialys.com>
wrote:
>
>
> This seems like a bug. It should still be able to recognize and open the
> file without the type hint, whether or not you provide a sub-dataset suffix.
>
> This is not a bug. This is intended. Subdatasets have a specific syntax.
> Valid subdataset names are the ones reported under the SUBDATASET metadata
> domain.
>
>
> Our system generally relies heavily on GDAL's usually-reliable ability to
> recognize file types and load anything without such hints, so having to
> provide that as well will be undesirable.
>
> This is generally true for the first level of access to a file, but once
> you want a specific part (name it "variable", etc), you have to comply with
> the nomenclature of each driver.
>
>
> --
> Simon Eves
> Senior Rendering Engineer
> +1 (415) 902-1996
> simon.eves at heavy.ai
>
> <http://www.heavy.ai>
>
> _______________________________________________
> gdal-dev mailing listgdal-dev at lists.osgeo.orghttps://lists.osgeo.org/mailman/listinfo/gdal-dev
>
> -- http://www.spatialys.com
> My software is free, but my time generally not.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230721/4ac591ee/attachment.htm>
More information about the gdal-dev
mailing list