Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 3 of 3

Converting Lat/Long to x,y Pixels

This is a discussion on Converting Lat/Long to x,y Pixels within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi all: I have a number of pushpins with their associated lat/long values within mappoint. I want to select a ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Converting Lat/Long to x,y Pixels

    Hi all:

    I have a number of pushpins with their associated lat/long values within mappoint. I want to select a map portion and copy it to the clipboard. I will know the four corners of the map's lat/long coordinates. I will also know the altitude. After I save the map from the clipboard memory as a bitmap or jpeg, I would like to somehow convert the Lat/Long pushpins into x,y coordinates. The lat/long will change periodically and I need an algorithm that will yield good x,y pixel values taking into account the earth's curvature etc.

    Any help would be appreciated.

    Thanks
    Robert

  2. #2
    Gryffyn is offline Junior Member White Belt
    Join Date
    May 2004
    Posts
    9
    Ok, so you're generating a map and saving it as an image somewhere.

    When you say that you want to convert lat/long to X,Y coords, are you talking about X,Y coords within the map you generated I assume?

    You can get the location object of the lat/long you have with the GetLocation method:
    http://msdn.microsoft.com/library/de...etLocation.asp

    Then you might look into the LocationToX and LocationToY methods:
    http://msdn.microsoft.com/library/de...ocationToX.asp
    http://msdn.microsoft.com/library/de...ocationToY.asp


    This should give you the X,Y coords of the locations you have visible on your map.

    Did that helps?

    -TG

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Converting Lat/Long to x,y Pixels

    Hello TG:

    I will try your recommendations. I will post once I get answers.

    Thanks
    Robert

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Converting to PDF for large printing
    By jhnywall in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 09-14-2010, 09:44 AM
  2. converting lat lon to x y
    By Dazzer in forum MapPoint Desktop Discussion
    Replies: 7
    Last Post: 02-10-2009, 11:12 PM
  3. Converting my Windows app. to ASP
    By BobFromBoston in forum MapPoint Desktop Discussion
    Replies: 7
    Last Post: 10-17-2005, 01:43 PM
  4. Converting XY to Lat Long
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-22-2004, 03:35 AM
  5. Converting Zip Codes to Lat/Long
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 06-01-2003, 01:27 PM

Tags for this Thread

Posting Permissions

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66