Results 1 to 5 of 5

Thread: Reading Google Earths Memory

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    North Carolina
    Posts
    734

    Reading Google Earths Memory

    Basically all I want to do is be able to point the cursor somehwere in google earth's window and have it tell me the Longitude and Latitude of where I clicked... nothing bad. However, I have no idea where to start! If anyone could be of assistance that would be great.


    "X-mas is 24.Desember you English morons.." - NoteMe

  2. #2
    Fanatic Member
    Join Date
    Aug 2005
    Location
    South Africa
    Posts
    760

    Re: Reading Google Earths Memory

    I think you would have to subclass the part of Google Earth that gives you the longitude & latitude and then get the caption of that.
    You'd need extensive use of API so you should maybe post it there.
    Good luck!
    If I helped you out, please consider adding to my reputation!

    -- "The faulty interface lies between the chair and the keyboard" --

    VB6 Programs By Me:
    ** Dictionary, Thesaurus & Rhyme-Generator In One ** WMP Recent Files List Editor ** Pretty Impressive Clock ** Extract Firefox History **

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    North Carolina
    Posts
    734

    Re: Reading Google Earths Memory

    The window that google earth uses to render in is one piece, the bar isn't seperate from the rest of the window. Atleast that is what I can gather from Spy++. So the only thing I could think of was to try and find the memory offset where the longitude and latitude are stored... but so far no luck.


    "X-mas is 24.Desember you English morons.." - NoteMe

  4. #4
    Fanatic Member
    Join Date
    Aug 2005
    Location
    South Africa
    Posts
    760

    Re: Reading Google Earths Memory

    ooh, seems like its gonna be quite a challenge!
    If I helped you out, please consider adding to my reputation!

    -- "The faulty interface lies between the chair and the keyboard" --

    VB6 Programs By Me:
    ** Dictionary, Thesaurus & Rhyme-Generator In One ** WMP Recent Files List Editor ** Pretty Impressive Clock ** Extract Firefox History **

  5. #5
    Member
    Join Date
    Mar 2008
    Posts
    40

    Re: Reading Google Earths Memory

    I'm working on a Google Earth app myself at the moment.

    I want to do exactly as the OP said, click on the screen and return the lat/long. This is proving to be an impossible task. 3 years on from this original post I'm just wondering if there is someone out there that could shed some light on this!

    vb Code:
    1. Dim GEI As ApplicationGE
    2. Dim Camera As CameraInfoGE
    3.  
    4.  
    5. Set GEI = CreateObject("GoogleEarth.ApplicationGE")
    6. While (GEI.IsInitialized = 0)
    7. Wend
    8.  
    9. Set Camera = GEI.GetCamera(0)
    10. MsgBox "Latitude: " & Camera.FocusPointLatitude & " Longitude: " & Camera.FocusPointLongitude

    The above function returns the lat/log of the center of the camera location on Google Earth. Any way to call this at a certain point on the Google Earth maps?
    I'm using vb6 and Google Earth v4.2.0205.5730.

    Thanks guys.
    Last edited by soconnor; May 15th, 2008 at 08:20 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width