Skip to content

Method to write LocationShown and LocationCreated in IPTC Extension schema #1254

Closed
@amarlakhani

Description

@amarlakhani

Per https://exiv2.org/tags-xmp-iptcExt.html and the associated IPTC Extension specifications, the value type of LocationShown and LocationCreated is a LocationDetails bag. The resulting Xmp section would look something like:

<Iptc4xmpExt:LocationCreated>
  <rdf:Bag>
    <rdf:li rd:parseType=“Resource”>
      <Iptc4xmpExt:Sublocation/>
      <Iptc4xmpExt:City>Paris</Iptc4xmpExt:City>
      <Iptc4xmpExt:ProvinceState/>
      <Iptc4xmpExt:CountryName>France</Iptc4xmpExt:CountryName>
      <Iptc4xmpExt:CountryCode/>
      <Iptc4xmpExt:WorldRegion/>
    </rdf:li>
  </rdf:Bag>
<Iptc4xmpExt:LocationCreated>

I haven't been able to find anything in the docs that would allow keys to be nested within a Bag like this.

If there is a way, I would be grateful if somebody would be able to share it with me.

Metadata

Metadata

Assignees

Labels

supportAnything related to a user needing help with exiv2

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions