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 4 of 4

How to get latitude and longitude

This is a discussion on How to get latitude and longitude within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, (1) If I have a location, is there a way to get latitude and longitude? (2) How to implement ...

  1. #1
    ma2005pp is offline Junior Member White Belt
    Join Date
    Sep 2005
    Posts
    5

    How to get latitude and longitude

    Hi,

    (1) If I have a location, is there a way to get latitude and longitude?
    (2) How to implement "Location Sensor" in MapPoint 2004, which shows Latitude/Longitude in a small box?

    Thanks for help.

  2. #2
    dsswanny is offline Junior Member White Belt
    Join Date
    Sep 2005
    Posts
    1

    Me too.

    I need to do the same thing.

  3. #3
    calv1ns's Avatar
    calv1ns is offline Member Green Belt
    Join Date
    Mar 2005
    Posts
    91

    Lat Long

    For estimation of Lat Long

    Gilles Kohl's "CalcPos" routine is what you need. It can be found in the following article:

    http://www.mp2kmag.com/a13--kohl.ext....mappoint.html

    It uses the measure distance functionality and a bit of geometry to calculate a location's coordinates.


    Richard
    _________________
    Winwaed Software Technology
    http://www.winwaed.com
    See http://www.mapping-tools.com for MapPoint Tools
    As for the show Location Sensor - if you mean the one built into MapPoint I dont think there currently is a method to ShowLocationSensor in the programming language.

    Ciao,
    Calv1ns

  4. #4
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    For the location sensor here is a code snipped from MouseMove event:

    Code:
            private void MP_MouseMoveEvent(object sender, AxMapPoint._IMappointCtrlEvents_MouseMoveEvent e)
            {
                AxMapPoint.AxMappointControl mp = (AxMapPoint.AxMappointControl)sender;
                Location Loc = mp.ActiveMap.XYToLocation(e.x, e.y);
                if (Loc != null) {
                    double Lat;
                    double Lon;
                    pos.CalcPos(Loc, out Lat, out Lon);
                    statusStripLat.Text = Lat.ToString("F4");   // is 11 meter nauwkeurigheid
                    statusStripLon.Text = Lon.ToString("F4");
                }
            }
    The pos.CalcPos is same routine as Gilles Kohl's one.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Latitude and Longitude
    By virgilar in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-21-2005, 02:01 PM
  2. longitude and latitude lookup
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 01-24-2004, 10:20 AM
  3. longitude and latitude lookup
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 01-23-2004, 04:58 PM
  4. Latitude and Longitude
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-25-2003, 01:52 PM
  5. NMEA latitude/longitude and mappoint latitude/longitude
    By muurman in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 11-22-2003, 05:42 AM

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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96