ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: L_Carver on May 30, 2017, 05:06:17 PM

Title: Old-style (manual, not GPS) location tags all in one list please
Post by: L_Carver on May 30, 2017, 05:06:17 PM
I'd like to see such a thing, so I don't have to hunt them down on the Web, in manpages, etc.

The ones I'm most interested in getting the tag names for (both IPTC and XMP) would be

-City
-State
-Country <and>
-Country code

I usually use Location/Sub-location to describe a physical location, such as "Home, "Pool," "Beach" or "Street."

Hoping someone can take the time to post such a tag list. I'm sure it would be helpful to others.  :D

Carver
Title: Re: Old-style (manual, not GPS) location tags all in one list please
Post by: StarGeek on May 30, 2017, 06:17:35 PM
Here's some that Geosetter has set in my images.

IPTC:Country-PrimaryLocationName
IPTC:Country-PrimaryLocationCode
IPTC:Province-State
IPTC:Sub-location
IPTC:City
XMP:City
XMP:Country
XMP:State
XMP:Location
XMP:CountryCode


Then there's the newer LocationCreated and LocationShown structures.  There are nine tags in these groups according to the XMP tag name page (http://www.exiftool.org/TagNames/XMP.html#iptcExt), six of which can be filled by Lightroom 4.4 and Adobe Bridge 7.  These tags are more complex, exiftool shows them as a list, but they're better thought of as columns in a spreadsheet, as you can have multiple entries.
XMP:LocationCreatedCity
XMP:LocationCreatedCountryCode
XMP:LocationCreatedCountryName
XMP:LocationCreatedGPSAltitude
XMP:LocationCreatedGPSLatitude
XMP:LocationCreatedGPSLongitude
XMP:LocationCreatedIdentifier
XMP:LocationCreatedLocationId
XMP:LocationCreatedLocationName
XMP:LocationCreatedProvinceState
XMP:LocationCreatedSublocation
XMP:LocationCreatedWorldRegion

XMP:LocationShownCity
XMP:LocationShownCountryCode
XMP:LocationShownCountryName
XMP:LocationShownGPSAltitude
XMP:LocationShownGPSLatitude
XMP:LocationShownGPSLongitude
XMP:LocationShownIdentifier
XMP:LocationShownLocationId
XMP:LocationShownLocationName
XMP:LocationShownProvinceState
XMP:LocationShownSublocation
XMP:LocationShownWorldRegion


There's also some location tags with regards to CreatorContactInfo, but I'm assuming that probably isn't quite what you're looking for.

Further info can be found in MWG Guidance pdf, Section 5.8 (http://www.metadataworkinggroup.org/pdf/mwg_guidance.pdf) and IPTC Standard Photo Metadata pdf (https://www.iptc.org/std/photometadata/specification/IPTC-PhotoMetadata-201610_1.pdf)
Title: Re: Old-style (manual, not GPS) location tags all in one list please
Post by: StarGeek on May 30, 2017, 06:29:05 PM
Further example of LocationCreated  and LocationShown.

Here's how Bridge shows the info:
(http://imgur.com/xfg61Qy.png)

If you want to add more locations, just click the corner folded paper in the upper right of that image and it gives you another listing to fill out.

The output from exiftool on that file looks like this:
C:\>exiftool -g1 -a -s -LocationShown* "X:\!temp\test\20140404_040405.jpg"
---- XMP-iptcExt ----
LocationShownCity               : New York City, Los Angeles
LocationShownProvinceState      : New York, California

Title: Re: Old-style (manual, not GPS) location tags all in one list please
Post by: StarGeek on May 30, 2017, 07:11:16 PM
Your post got me thinking that a shortcut for the first group of tags might be useful to show all that info at once.  This can be added to the Shortcut section of the exiftool config file to do so.

MyLocation  => ['IPTC:Country-PrimaryLocationCode','XMP:CountryCode','IPTC:Country-PrimaryLocationName','XMP:Country','IPTC:Province-State','XMP:State','IPTC:City','XMP:City','IPTC:Sub-location','XMP:Location'],

The other tags can easily be shown with -LocationShown* or -LocationCreated*