Reading structured fields, like taxon in DarwinCore

Started by alanterra, August 11, 2020, 04:17:56 PM

Previous topic - Next topic

alanterra

I understand that you can set a component of a structure (like DarwinCore taxon) either by setting the field in the structured tag, or by using the shortcut name that references the field. But I can't figure out how to read a structured field.

All of the following commands work as expected

$ exiftool -taxon='{order=Rosales}' photo.jpg
$ exiftool -taxonorder=Fabales photo.jpg
$ exiftool -xmp-dwc:all photo.jpg

But I can't figure out how to read just the "taxon" fields. Can that be done?

StarGeek

Add the -struct option.  You'll get output like your first example with all parts of the structure.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).