Skip to main content

Search for map coordinates

Answered

Comments

18 comments

  • Brian Lawson Community moderator

    As far as I know, the search field in Map View does not accept latitude & longitude coordinates. You have to search for a name in the vicinity of the location then you can set the actual location for the image. You can paste them into the GPS field of the Metadata tab though.

    0
  • Henry Wede

    Thank you for the quick response.  After a few tries, I was able to paste the coordinate from Google Earth into the Metadata tab.  Switching to the map view then shows the point.  If anyone stumbles on this discussion, one of the correct formats is:

    37.660027, -111.563553

    There cannot be a leading space (hard to see with my eyesight) and there cannot be any degree symbols.

    What is the best place/way to offer software suggestions that somebody will actually read and consider?

    0
  • Rick Sammartino Community moderator

    For software suggestions, this is really your only option...

    https://www.on1.com/products/photo-raw/ideas/

    0
  • Brian Lawson Community moderator

    Why do your searching on Google Earth when there is a mapping system built into the program? You locate the area you are interested in then right-click to drop a pin. Those GPS coordinates are added to the Metadata field.

    0
  • Henry Wede

    I don't really do "searching" in Google Earth - I use it to display all of my hiking information.  I can look at the roads that I drive on, the trails that I walked, etc.  I can see where I took a photo in GE, just searching for a workflow to get that information into ON1.  My hiking is usually well away from pavement and often away from cell service.

    If I could bring GPS information (waypoints and tracks) into the map it would help a lot.  However, then people would expect automatic geotagging and I could see how the developers might not want to open up that issue right now

    0
  • Brian Lawson Community moderator

    That makes sense. A lot of my photos come from wilderness locations too. I use a combination of the two. Pasting the lat & long into the GPS field works pretty well.

    0
  • Henry Wede

    Just in case others stumble onto this thread, here is the solution that I came up with...

    When a waypoint is selected in Google Earth and the user presses Ctrl-C to copy it to the clipboard, the text that is placed onto the clipboard is actually the XML/KML that defines that waypoint.  If you paste into NotePad you can see what I mean.  If you paste that directly into the GPS field in Photo Raw it has no idea how to handle it.  So...

    I wrote a Python program that (when running) checks the clipboard every second.  If it recognizes the KML from Google Earth, then it reads the coordinates and puts them back on the clipboard so that Photo Raw can understand them.  When I am updating coordinates from GE to PR, I just run the program and let it do the conversion.  Ctrl-C in GE, Alt-Tab to switch to PW, then click in the GPS field and press Ctrl-V.  Very quick.

    I can't attach the program to this message so I will just paste the text below and anyone that is interested can paste it into a new file.  Make sure the file that you save ends in .py and not .txt

    To run... Install Python Version 3.x that you download from www.Python.org.  In the search box of Windows type "cmd" and then select "Run as administrator".  This only needs to happen the first time because there is a library needed (for working with the clipboard) that is not part of the standard Python installation.  It needs to be installed separately.  Move into the folder where you created the file and enter "python nameOfYourFile.py" and it will guide you on how to install the program.

    That is as short as I can make the instructions.  Sorry if it is confusing.

    OK - when I paste the code, all of the TABs (and leading spaces) are removed.  You will have to add the tabs in manually when you save your file.  Sorry again, nothing I can do.  Please refer to the screen capture to see how the tabs should look.

    import sys
    import time
    import datetime

    # This program will monitor text that is pasted onto the clipboard

    # The most likely error is that the PyperClip module is not installed, so check that first
    try:
    import pyperclip
    except:
    print('\nThis program requires a module called "PyperClip" and it was not found.')
    print('From a DOS window command prompt, type in the following command:')
    print('\npip install pyperclip')
    print('\nThis needs to be done with administrator privledges...')
    print('In the Windows search box, type "cmd" and then right-click on the icon and ')
    print('choose "Run as administrator" then enter the command from above.\n')
    sys.exit(0)

    print('\nThe program will now check the Windows clipboard every second and look for')
    print('Google Earth waypoints. If they are found, simplified coordinates are pasted')
    print('back onto the clipboard. The simplified coordinates can be pasted into')
    print('the metadata field of ON1 software.')
    print('\nPress Ctrl-C to stop the script from running...\n')

    # Loop forever...
    while True:

    # Pause for 1 second and then get the text from the clipboard
    time.sleep(1)
    Text = pyperclip.paste()

    # Only deal with the text if it is over 50 characters
    if len(Text) > 50:

    # Look for the starting tag
    End = 0
    Start = Text.find('<coordinates>')

    # If the start tag was found, then look for the closing tag
    if Start > 0:
    End = Text.find('</coordinates>', Start)

    # If the end tag was also found, then pull out the coordinates
    if End > 0:
    CoordinateString = Text[Start+13: End]
    Pieces = CoordinateString.split(',')

    # Separate the coordinates by a comma - there should be 3 pieces
    if len(Pieces) == 3:
    Latitude = Pieces[1]
    Longitude = Pieces[0]

    # Print the current time so the user can tell it worked
    Now = datetime.datetime.now()
    Prefix = Now.strftime('%I:%M:%S')

    # Assemble the values in the correct order for metadata
    PastableString = '{0},{1}'.format(Latitude, Longitude)
    print('{0} [{1}:{2}] --> {3}'.format(Prefix, Start, End, PastableString))

    # Paste the text back onto the clipboard
    pyperclip.copy(PastableString)

     

     

     

    0
  • Brian Lawson Community moderator

    Or, you can use the map that's built into the program and avoid all the unnecessary Python stuff. ;)

    0
  • Henry Wede

    No, not really. 

    First, the "search" feature of the map does not understand latitude and longitude (see top of thread). 

    Second, the map view cannot import any GPS file formats.  There isn't any way to correlate GPS data from Google Earth, Garmin Basecamp, or anything else into the map view of Photo Raw. 

    The only possible way is to switch to a satellite view and try to find the same spot by panning around.  This is difficult because PR uses a different set of images than GE.  This is very time consuming.  It is not practical.

    I'm not saying that the map view is evil or anything, it is a very good start.  It is just limited right now and needs some attention.  Until that happens, I need to get locations into keywords.

     

    0
  • David Kick

    I find that copying GPS values from Google maps and pasting into GPS info in PR works fine.

    You have to copy the bottom values though

    0
  • Subias Gilles

    As I don't speak/understand english very well, maybe my post will be out of subject, sorry.

    For geotag my photos untagged, I use Houdahgeo, which is very useful; I think it can also add GPX and KML, then add the metadatas in the original files, open in ON1 easily.

    edit: the feature I like is you can batch many photos and geotag them in 10 sec.

    0
  • Brian Lawson Community moderator

    Henry, my comment wasn't meant to sound as dismissive of your idea as it came across. Sorry for that. I do appreciate that you went to the effort to help other users.

    0
  • Henry Wede

    Brian,

    I didn't take it that way at all.  Since we communicate behind keyboards now you have to be "optimistic" when you read comments.  With verbal communication a smile or laugh completely changes things.  Unless you are wearing a mask, then the smile part doesn't count anymore.

    David,

    You are 100% correct, but getting information from a GPS unit into Google Maps isn't trivial.  If your workflow involves Google Maps (obviously different that Google Earth) then life is easier.  I am confident that ON1 will improve the map view and things will be better.

    0
  • Brian Lawson Community moderator

    I used David's method with Google Earth Pro and it works for me. Copy/pasting the decimal values works directly. You can use the deg min sec format too but it has to be massaged a little to get into the correct format for ON1 to accept.

    0
  • Henry Wede

    How are you displaying the decimal degrees?

    I only see it when I right-click and see the properties panel.  Then you have to paste both values making sure to add a comma and remove the trailing space.  Is there an easier way?

     

    0
  • Brian Lawson Community moderator

    I changed it in GEP's Preferences. Their latitude component is preceded by a space character you have to be sure not to include. I copied/pasted each of them into the comments for my Placemark so I could add the comma and make sure the leading space was gone then copy/pasted that into ON1's Location field. It was immediately translated into deg min sec and accepted without complaint.

    0
  • Brian Lawson Community moderator

    Doing the same thing with the deg min sec display works too. It seems that the leading space and the lack of spaces between the lat/long and their NSEW designators is why ON1 rejects them. Oh, and the extraneous space character in the Latitude between deg & min needs to be removed.

    0
  • Henry Wede

    OK, we are on the same page then.  Your method absolutely works.

    I just find that my method is much easier with less mouse clicking.  Since switching to ON1 I have a lot of images to update.  With my program running I can click on a waypoint on one monitor and copy, click in PR on the other monitor and paste.  I know that developers don't like crazy homebrewed solutions like mine, but with so many images to update I'll stick with it :)

    Thanks for all of your time to respond to my tangent.

     

    1

Please sign in to leave a comment.