ExifTool Forum

ExifTool => Developers => Topic started by: boxerab on December 31, 2020, 04:01:27 PM

Title: Question: does ExifTool support GML meta data ?
Post by: boxerab on December 31, 2020, 04:01:27 PM
Here are a few links:

https://en.wikipedia.org/wiki/Geography_Markup_Language

https://www.loc.gov/preservation/digital/formats/fdd/fdd000279.shtml

https://www.loc.gov/preservation/digital/formats/fdd/fdd000303.shtml

Thanks,
Aaron
Title: Re: Question: does ExifTool support GML meta data ?
Post by: blue-j on January 01, 2021, 06:36:07 PM
ExifTool doesn't have built-in mapping for GML, but since it is XML-based, it's quite possible to use a custom config to build custom support for it.  Unfortunately, I recently reported a problem with the support of XML-based file formats, and I believe the principal (sole?) author of ExifTool, Phil Harvey, is reviewing the matter.  It's likely to be resolved sometime quite soon.

https://exiftool.org/config.html (https://exiftool.org/config.html)

- J
Title: Re: Question: does ExifTool support GML meta data ?
Post by: Phil Harvey on January 02, 2021, 09:16:41 PM
ExifTool doesn't officially support XML files, but it will parse them and extract the individual properties as separate tags if you force it to read any XML-based file.

- Phil
Title: Re: Question: does ExifTool support GML meta data ?
Post by: boxerab on January 04, 2021, 10:55:45 AM
Thanks, guys. The reason I am interested in GML is that this is one type of meta-data stored in JPEG 2000 file format. But, it is stored in a JPEG 2000 Part 2
box, which would need to be parsed by exiftool.
It doesn't look like GML can be stored in any non-jpeg 2000 file formats, so it may not make sense
for exiftool to extract it from J2K if it can't store it anywhere.
Title: Re: Question: does ExifTool support GML meta data ?
Post by: blue-j on January 04, 2021, 01:05:52 PM
Can you share any sample images with GML in them?

-J
Title: Re: Question: does ExifTool support GML meta data ?
Post by: Phil Harvey on January 04, 2021, 01:15:09 PM
If you share a sample I should be able to add the ability to extract this using ExifTool.

- Phil
Title: Re: Question: does ExifTool support GML meta data ?
Post by: boxerab on January 04, 2021, 05:09:15 PM
Thanks, Phil, attached is a sample with GML.

The header uses the Part 2 Association box - you can find a description here:
https://web.archive.org/web/20161011044237/http://old.jpeg.org/public/15444-2annexm.pdf

if you search for:

M.11.11  Association box (superbox)
Title: Re: Question: does ExifTool support GML meta data ?
Post by: Phil Harvey on January 05, 2021, 03:01:43 PM
Thanks for the sample.  ExifTool 12.14 will extract metadata from the Association box, so you will be able to extract the GML using this command:

exiftool -xml -b FILE

- Phil
Title: Re: Question: does ExifTool support GML meta data ?
Post by: boxerab on January 05, 2021, 10:53:52 PM
Awesome, thanks and looking forward to 12.14 !
Title: Re: Question: does ExifTool support GML meta data ?
Post by: boxerab on January 11, 2021, 08:37:06 AM
works like a charm, thanks again!
Title: Re: Question: does ExifTool support GML meta data ?
Post by: Phil Harvey on January 11, 2021, 04:03:06 PM
Great.  Thanks for the confirmation.

- Phil