Setting EXIF:GPSLatitude and EXIF:GPSLongitude from a PlugIn

The new LR4 mapping faclity is great, but I'd like to map the locations on my existing photos (over 20,000)..
All my photos already have city/country information set as Keywords, and I am able to separately convert these locations to GPS coordinates via the Google Maps API.  (I have a standalone program to do this and dump the results to a CSV file.)
What I can't work out is how to add this GPS information to the Adobe Metadata.  I could possibly try this outside Lightroom using EXIFTool or equivalent, but it should be possible to do it through the SDK.
My current Plug in loads the GPS data, and then for each photo in the collection tries:
photo:setRawMetadata(GPS,LatandLongString)
This gets an assert failed message - presumably because GPS is not a valid Key.  LatandLongString is has the latitude with cardinal point (N/S) followed by the longitude with cardinal point (E/W) separated by a space.  (I also tried setting GPSLatitude and GPSLongitude separately). 
Any ideas on the correct way to do this?
(Incidentally, what is the correct way to get a collection by keyword?  My current code is:
local thisKeyword = catalog:createKeyword( "Location1: " .. Location1, {}, true, nil)
local photos = thisKeyword:getPhotos()
but this also causes an error when trying to access the resulting photo array)
Thanks in advance.
Glyn

John,
thanks - I also got a similar answer from Jeffrey Friedl, and this works correctly.  I didn't see this in the documentation but maybe my web search didn't show up the latest version of the manual.
With respect to the getting collection by keyword, I abandoned using the thisKeyword:getPhotos() construct.  Instead, I searched the catalog by keyword:
local photos = catalog:findPhotos {
searchDesc = {
criteria = "keywords",
operation = "all",
value = "Location1: " .. Location1,
Thanks,
Glyn

Similar Messages

  • I updated to ios7 and got the set up asst and selected restore from back up.... can't get itunes to do the restore as it wants me to turn off find my iphone, but I can't access anything on my iphone to turn off as I am in ios set up assistant

    I updated my iphone 4 to ios7.04 in itunes.  In itunes, it appears that all my data/apps/music/etc are on the phone  (but I cannot see anything on phone itself except setup screens).  I am getting the ios7 setup screen on my iphone.  I have selected my language, selected my wifi netowork, enabled location services, and chosen resore from itunes back up.  Next screen I get says to connec to itunes, which I did.  In itunes, I select restore from backup.  I then get a message that I need to disable "find my iphone " "Go to iCloud Settings on your iPhone and turn off Find My iPhone before restoring your iPhone."  I cannot go to any settings on my iphone as I cannot get past the connect to iturnes screen!  I have also tried  not enabling location services and that made no difference.  I cannot get to anyplace on my iphone except the ios setup first few screens.  I am going crazy, there must be some simple thing I have missed!  Any help appreciated!

    I found a way to get to my data.  So do not need remedy at this time. 
    fwiw, I changed my ios7.04 setup answer of restore from itunes to new iphone. Eventually that allowed me to set up icloud, then turn off find iphone, restore.  Very strange ios update. 

  • How to set the date and time format from Windows Server 2008 R2

    Hi,
    I want to control my client's date and time format as dd/mm/yyyy format and I need to do it using the windows server 2008 R2. How can I achieve this goal?
    Yoshika04

    Hi,
    In Windows Server 2008 R2, you can use Regional Options Extension in Group Policy Preferences to configure the date and
    time format. For more information, please refer to:
    Regional Options Extension
    http://technet.microsoft.com/en-us/library/cc754496.aspx
    Regards,
    Bruce

  • Corrupted EXIF data in photos exported from Lightroom CC

    After upgrading to Lightroom CC EXIF can't be read by some apps. "Re-saving" a file in Photoshop fixes the problem. I'm using Mac OSX 10.9.5. Are there any plans to update and fix the EXIF data generated when exported from Lightroom CC?
    Also, this command fixes the issue with Create Date part of EXIF.
    #!/bin/sh
    exiftool -AllDates="$(exiftool ${1} | grep 'Create Date' | awk '{print $(NF-1), $NF }')" -overwrite_original ${1}
    The reason I'm asking is because we run a site where "Create Date" read from JPG's EXIF is crucial and it's a matter of letting users upload the pic or deny uploading.
    So again, any plans on the fix?
    Regards,
    Pawel Kadysz

    I confirmed that the Exiftool command line:
    exiftool -m -all= -tagsfromfile @ -all:all -unsafe file.jpg
    removes the ICC Profile, which could account for significant color differences, considering that the profile is Adobe RGB.  I think this may be a bug in Exiftool, so I filed a bug report.  (But it might be that Exiftool just can't handle the non-standard layout of LR's JPEGs.)  The author is typically very responsive.
    I tried some alternate Exiftool command lines that touch as little metadata as possible, and this one seems to address both of LR 6's JPEG problems:
    exiftool -m '-exif:datetimeoriginal<exif:datetimeoriginal' -xmp-crs:all= file.jpg
    The -m option ignores minor errors and issues, in particular, when there are more than 1000 entries in the XMP metadata.
    The '-exif:datetimeoriginal<exif:datetimeoriginal'  option sets the EXIF Date Time Original Field with its current value; this tricks Exiftool into rewriting just the EXIF metadata without touching the other metadata segments (e.g. the ICC profile), addressing the first JPEG problem.   (You could use any EXIF field that's present -- I picked DateTimeOriginal since every camera adds that.)
    The -xmp-crs:all= option option deletes all of LR's develop settings from the XMP metadata, addressing the second JPEG problem.That metadata is not ready by any programs other than LR, as far as I know. 
    I've tested this new command line on a couple of pics, including the example you provided above, and it appears to work correctly.  But given that we're dealing with buggy output from LR that doesn't conform to the de facto and de jure standards, it's hard to have high confidence without testing on dozens if not hundreds of pics.

  • Is there a plugin available to manage IPTC and EXIF-data within PSE7

    And why does PSE7 not supp
    ort this anyway?

    When you import a photo into your catalog, the Organizer will also import tags, dates/times, captions, notes, star ratings, and GPS locations from the photo's EXIF metadata (including the IPTC and XMP sections of the EXIF).   You can then edit that information in the Organizer and write it back to photos using File > Write Keyword Tag.  You can view almost all of the EXIF fields of a Photo in the Properties window of the Organizer.
    In the Editor, you can view the EXIF metadata with the File > File Info command, and you can edit a few of the fields (but not most of them).  PSE 7 supports "custom info panels", scripts that you can add that will let you edit EXIF metadata.  This is an undocumented feature inherited from full Photoshop, but you can get hints about it here:
    http://forums.adobe.com/message/2007450#2007450

  • Does the ipad preserve full resolution and exif data on imported photos?

    If I import photos to my IPad2 using the 'camera connection kit',
    a) How do I transfer those photos to my windows computer ?
    b) Does the IPad2 preserve the full resolution and EXIF data etc of the photo ?
    Thanks in advance for your answers !

    There is help in this article (but basically your computer should see the iPad as a camera and should appear in windows explorer if there are non-synced photos i.e. taken with the iPad, transferred via CCK, or saved from emails/websites etc) : http://support.apple.com/kb/HT4083
    And, yes, the full photo and it's info is stored/copied i.e. they are the same as on the memory card.

  • Maintaining EXIF data when transferring pictures from XP to iPhoto?

    Good afternoon everyone! Hope I can get some help here...
    is there any way to maintain the EXIF data added from a computer using Windows XP. This is when you right click on a photo and go to properties->summary tab (i.e. keywords and comments) while importing into iPhoto? A client of mine spent hours upon hours adding comments like location, description, etc. to each photo and it would essentially be a nightmare re-doing all of that.
    Even an add-on or separate program would be fine. In the event that iPhoto does not work nicely with this, any recommendations for future use on the Apple platform would be appreciated. Thanks fellas!

    You are confusing EXIF - the data about the photo from your camera - with ITPC data - iPhoto pays attention to both IF they are present in the proper fields - the key to transferring EXIF and ITPC data from one computer to a Mac using iPhoto is to have the data properly embedded in the photo of the source computer - if it is then iPhoto will use it on import
    see http://graphicssoft.about.com/od/glossary/f/metadata.htm for more information on EXIF, TITPD and XMP
    Also download EXIF viewer for the Mac - http://homepage.mac.com/aozer/EV/index.html - to view the EXIF data before iPhoto gets it
    LN

  • Images resized and exif stripped when emailed ?

    Does any know why the iPhone resizes images (to 640x480) and strips out EXIF data when you email a photo. However, if you download the photos you get the full size and EXIF data ?
    As i often like to email photos direct to Flickr from my iphone it is very annoying to end up with a poorer image than what i should have.

    Hello All,
    Great news for the Apple iPhone.
    Just downloaded 2.1 software update, and the Geotagging correctly geotags the southern hemisphere, now adds a GPS Time-Stamp as well as the GPS longitude & latitude info to the EXIF.
    AND, when you e-mail it or transmit the image to a secure server, mobleme, Flickr . . . ALLL OF THE EXIF DATA STAYS INTACT, INCLUDING THE GPS METATAGS . . .
    AND THE SIZE OF THE IMAGE HAS BEEN REDUCED FROM 1200 X 1600 TO 600 X 800 . . .

  • I would like to set up my email on the apple tv as well as have my husband's email on there so we can view both sets of photos and videos - it is already set up in his name - how do i add my name so as to view my photo library from all of my devices?

    I would like to set up my email on the apple tv as well as have my husband's email on there so we can view both sets of photos and videos - it is already set up in his name - how do i add my name so as to view my photo library and songs from MY phone ?

    this is not a reply - i asked the question - still trying to learn how all this works - someone please HELP ME

  • I cannot send an email from my iPad 2? No problem receiving, why does this happen? Have tried the suggestions for setting up email and after doing the sync mail through iTunes receiving worked great but still cannot send? Any help would be great

    I cannot send an email from my iPad 2? No problem receiving, why does this happen? Have tried the suggestions for setting up email and after doing the sync mail through iTunes receiving worked great but still cannot send? Any help would be great!

    The fact that you can receive means you have a valid e mail address, and have established the connection to the incoming server, so all of that works.  Since the send does not work, that means your outgoing server is rejecting whatever settings you used formthe outgoing set up.  Try them again. 
    Google your particular isp, and ipad and many times you will find the exact settings needed for your isp.  Or tell us here, and soneone else may be on the same isp.  Some mail services need you to change a port, or have a unique name for the outgoing server.  
    Kep trying.

  • Hi. I am using the iPhone 4S and when I'm searching for places using Google it does not automatically detect my location. How do I change this? FYI...under settings i have it set at "Use new precise locations from my device."

    Hi. I am using the iPhone 4S and when I'm searching for places using Google it does not automatically detect my location. How do I change this? FYI...under settings i have it set at "Use new precise locations from my device."

    If you are missing using google maps - try the Nokia map app called "here"

  • HT201304 It would be tremendously helpful to be able to access, set restrictions, and make changes from the parents device to all devices under the same iTunes account, so that I could make changes to my kids devices without physical access.

    Please help!
    It would be tremendously helpful to be able to access, set restrictions, and make changes from the parents device, to all devices under the same iTunes account, so that I could make changes to my kids devices without physical access.
    I understand that I can set up a different Apple ID for the kids devices, or take physical control of the device and make the changes myself. However, my teenage son is technically savvy enough to have a job in Silicon Valley, as are most young people these days. However, in order to access his devices the current way, I first have to bypass the four digit pass code. This starts a fight of why I need in the device and continues to escalate. The argument that I am the parent will gain access but the fight is simply exhausting, and quite frankly shouldn't have to happen at all. He is not yet an adult, he did not pay for his iPad or iPhone and I, as a parent, should have not only have the right to change options at will, and from anywhere, but look at history or current activity when I feel like it.
    I currently have the settings where app and in-app purchases require my password to be put in, and he must come to me to type it in, but I need more control and would like, and should be able to access any of our six devices and make individual changes simply by logging in to my account, with my password.
    If I can see all my devices on the "Lost My iPhone" app, this technology should be easy to make happen.
    C'mon parents! I have a pretty good kid, given all things that they can get into, but I am not stupid. For everything I see has been done, there is much more I haven't seen. I want my children to be kept safe and be able to know what they are looking at or listening to. We parents are the only ones who know our beliefs and what our kids can handle and when.
    Thanks for any support or information that I may be missing in order to fulfill my request.

    There are mobile device management solutions that can do this, including in Apple's OS X Server system, but most parents generally find that setting this up is more work than it's worth. If you're interested, though, there are a couple that at least purport to be free (I don't know if there are any hidden "gotchas"):
    http://www.unwireddevicelink.com/features/
    https://meraki.cisco.com/products/systems-manager
    and Apple's system:
    http://www.apple.com/osx/server/features/#profile-manager
    I don't think any, however, allow you to see current activity or browser history. iOS doesn't expose those to access from MDM solutions, to the best of my knowledge.
    Regards.

  • I am having a big problem. I am not getting notifications from snapchat and only snapchat. I've made sure every notification setting was on and it just won't work. I have also restored my phone and deleted the app and re-downloaded it multiple times. Help

    I am having a big problem. I am not getting notifications from snapchat and only snapchat. I've made sure every notification setting was on and it just won't work. I have also restored my phone and deleted the app and re-downloaded it multiple times. It just wont give me my notifications. Help please.

    Go to Settings > Privacy > Location Services.
    Turn off SnapChat.
    Go to Settings > Notification Center
    Turn off SnapChat.
    Restart the device.
    Go to Settings > Privacy > Location Services.
    Turn on SnapChat.
    Go to Settings > Notification Center
    Turn on SnapChat.
    Test the issue.

  • How can i set action on UITaBar and get event from that

    Hi All,
    I m doing one apps in which i have to add three UITabBarItem and this is UITabBarSystemItem.
    Now i cannot understand that how can i set action and get event from the?
    And how can i set various views on three tab bar item.
    I have to use UITabBar means i have to use UINavigationController+UITabBar
    My code id
    tabBar =[[UITabBar alloc] initWithFrame:CGRectMake(0,370,320,50)];
    tabBar.backgroundColor =[UIColor blackColor];
    UITabBarItem *search =[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemSearch tag:0];
    UITabBarItem *recents =[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemRecents tag:1];
    UITabBarItem *favorites =[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemFavorit es tag:2];
    tabBar.items =[[NSArray arrayWithObjects:search,recents,favorites, nil] retain];
    tabBar.selectedItem = search;
    [myView addSubview:tabBar];
    [tabBar release];
    I add a action:
    UITabBarItem *search =[[UITabBarItem alloc] InitWithTabBarSystemItem:UITabBarSystemItemSearch tag:0 action:@selector(select:)];
    So it error: Warning -no'InitWithTabBarSystemItem:tag:action:' method fount
    So any can help me regarding it?

    Thanks RickMaddy very much.
    I read and do with sample at the View Controller Programming Guide . But when run it only view TabBar with title but haven't got any TabBarItem on it. I searched a few example about TabBar and i did, but i want do a form with a button then press on button it view a form with 2 TabBarItem on TabBar and press each TabBarItem will show correlative form page 1, page 2.
    UITabBarController *tabBarControl = [[[UITabBarController alloc] initWithNibName:nil bundle:nil] autorelease];
    tabBarControl.title = @"Tab bar";
    ViewControl1 *view1 = [[[ViewControl1 alloc] initWithNibName:@"ViewControl1" bundle:nil] autorelease];
    ViewControl1 *view2 = [[[ViewControl1 alloc] initWithNibName:@"ViewControl2" bundle:nil] autorelease];
    tabBarControl.viewControllers = [NSArray arrayWithObjects:view1,view2,nil];
    [self.navigationController pushViewController:tabBarControl animated:YES];

  • HT2688 Working on a single computer with multiple users, I have set things up to allow each user to view and listen to the others' music libraries under the "Shared Library" function.  Can you then connect an iPod touch and copy music from a shared librar

    Working on a single computer with multiple users, I have set things up to allow each user to view and listen to the others' music libraries under the "Shared Library" function.  Can you then connect an iPod touch and copy music from a shared library?

    Was your wife logged into the libray at the time you tried to log in? I have had a similar problem and it was because another user was logged into the library when I attempted to. I got the permission denied banner.

Maybe you are looking for

  • Error, After applying the patch for 10.1.0.2ERROR: OPatch failed because of

    Download this patch from oracle metalink This Bug for Linux x86 for oracle server 10.1.0.2 Bugs Fixed by this patch: # 3520157 : CREATE INDEX USES EXISTING INDEX (IDX FAST FULL SCAN) AND RUNS SLOWER THAN TABLE steps followed for oracle_home $export O

  • Is there a roadmap for Hebrew interface of Adobe Reader 11?

    Hello, I am working in an enviroment of Win7 and Citrix. We are using Adobe Reader 10 and just found out it is not supported in Citrix. Due to regulations, I have to use Hebrew Interface (Menu, Dialogs and so) but there is no Hebrew version for the R

  • Bug in JOIN syntax? (oracle 9i)

    Hi, take these three tables: MASTER (id NUMBER, name VARCHAR2(10)) DETAIL (id NUMBER, master_id NUMBER) SUBDETAIL (id NUMBER, detail_id NUMBER, name VARCHAR(10) When I perform this query: SELECT SUBDETAIL.id as did, MASTER.id as mid FROM SUBDETAIL JO

  • IMac had 2 kernal panics in last 48 hours.  Is this bad?

    When I swithched over to Lion, my computer really went haywire and one of the problems was that the computer would basically freeze up and then a message came on the screen in many languages and said I had to restart my computer and a report of the p

  • Iphone 4 problem

    hello i upgraded my iphone 4 to ios7 when the upgrade is done it began giving me the signal of the startup of the iphone and it doesn't proceed this stage. the phone is not turning on and it's been like 12 hour doing that. i tried the press/hold the