I see on the page listing XMP tags that 'ProvinceState' is in the "iptcExt" list, so why am I getting this error?
standout, with data called from a file formatted to use readline, looks like this:
carver@carver-vostro-1720 unsorted $ mapfile -t msallen<realnimuelocation
carver@carver-vostro-1720 unsorted $ file0=${msallen[0]}
carver@carver-vostro-1720 unsorted $ echo $file0
nimue4319.jpg
carver@carver-vostro-1720 unsorted $ city=${msallen[1]}
carver@carver-vostro-1720 unsorted $ prov=${msallen[2]}
carver@carver-vostro-1720 unsorted $ country=${msallen[3]}
carver@carver-vostro-1720 unsorted $ echo $city
London
carver@carver-vostro-1720 unsorted $ echo $prov
England
carver@carver-vostro-1720 unsorted $ echo $country
United Kingdom
carver@carver-vostro-1720 unsorted $ tool -City="$city" -ProvinceState="$prov" -Country="$country" $file0
1 image files updated
I haven't take it any further than this, but per usual I've considered writing a bash script to handle text source files line-by-line in just this way. Do I have to specify the XMP tag I'm trying to use in this instance, as in XMP-iptc-Ext:ProvinceState, or is my install of Exiftool just being flukey? (10.10 in LinuxMint 8.2 Serena)
Carver
I believe that it's part of the LocationDetails Structured data, which is the format of other tags, such as LocationCreated, LocationShown, and RatingRatingRegion. In this case, it looks like it can't be written as a flattened tag, only as part of the structure. See the Structured Information (http://www.exiftool.org/struct.html).
I could be wrong though, I have trouble wrapping my head around the whole structured tag stuff.
StarGeek is correct. ProvinceState is a structure element, not a tag. It is used in either a LocationCreated, LocationShown or RatingRegion structure. So you need to write LocationCreatedProvinceState, LocationShownProvinceState or RatingRegionProvinceState.
- Phil
And correct me if I'm wrong, Phil, but it can't be extracted separately like an individual tag? At least it doesn't seem to in my quick tests. You have to extract the whole thing with the -struct option?
If so, then I'd say that this isn't the tag you want to use, L_Carver. I think XMP:State is the tag you want, because it's the XMP version of the IPTC:Province-State tag.
Never mind, re-read your post.