Results 1 to 2 of 2

Thread: How to find the Lat/Long of a point on image (scanned map)

  1. #1

    Thread Starter
    Lively Member cs_tx_usa's Avatar
    Join Date
    Dec 2007
    Posts
    98

    How to find the Lat/Long of a point on image (scanned map)

    Hi guys,
    I have scanned a map which was in UTM WGS 84 projection system. The scanned map is now in jpg format and loaded into picturebox. If I select a point, how could I know that point's latitude and longitude? How could I integrate a projection system over the image displayed in picturebox?

    Thanks.
    Last edited by cs_tx_usa; Apr 28th, 2011 at 04:55 AM.

  2. #2
    PowerPoster Jenner's Avatar
    Join Date
    Jan 2008
    Location
    Mentor, OH
    Posts
    3,712

    Re: How to find the Lat/Long of a point on image (scanned map)

    You have the X and Y mouse position within the PictureBox, you just need to write a transform function that figures out what the Lat and Long change is per pixel of map image. If you find that each pixel of your map is 0.543 Lat and 0.524 Long then you just multiply.

    Of course, this function depends completely on your image. A different image may be scaled differently.
    My CodeBank Submissions: TETRIS using VB.NET2010 and XNA4.0, Strong Encryption Class, Hardware ID Information Class, Generic .NET Data Provider Class, Lambda Function Example, Lat/Long to UTM Conversion Class, Audio Class using BASS.DLL

    Remember to RATE the people who helped you and mark your forum RESOLVED when you're done!

    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. "
    - Albert Einstein

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