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

Conversion from geographic degrees to metres

This is a discussion on Conversion from geographic degrees to metres within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi! I met a problem when programming with Mappoint 2000 and Visual Basic 6. Having a position defined by latitude ...

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

    Conversion from geographic degrees to metres

    Hi!

    I met a problem when programming with Mappoint 2000 and Visual Basic 6. Having a position defined by latitude and longitude degrees (either decimal or in hours, minutes and seconds), I can establish a radio in metres (using a Radius object). I need to know whether another point, also given in latitude and longitude degrees, is within the area defined by the first point and the radio. But, for that I have to convert from degrees to metres or vice versa.

    IŽve been searching for information on the net and many pages ask for several parameters such as ellipsoid, projection and prime meridian. Is there any library or whatever already coded I can use that doesnŽt need so many things? Or, if all of these is necessary, a way to find which parameters I will need and a function to use it within Visual Basic or Mappoint? Do you know any way to find if the second point is within that area avoiding conversion?

    Thanks for your help.

  2. #2
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60
    Sounds like you're finding the right formula (some are over-simplified).

    You need to take into account the geoid that your coordinates are on.
    Coming from a geophysical background I could bore you to death as to what a geoid really is, but in this case you need to know that the shape of the Earth is approximated with an ellipsoid. To get an accurate distance, you need to use the correct ellipsoid that your coordinates are on.

    MapPoint (and most GPS systems) use an ellipsoid known as "WGS84", because this is a pretty good approximation worldwide
    (some countries use other ellipsoids, because they are a better fit locally).

    So you need to search the web for the WGS84 ellipsoid specification, and plug these into your calculations that you've found. I would use double precision floating point for the calculations - yes all those digits in the ellipsoid spec do matter!!

    Eric: Is there an article here, that does this?

    What I could really do with, is a book with all this stuff - a "cookbook" of useful mapping calculations" as it were, along with useful reference information such as common ellipsoid calculations.
    Most of it is out there on the web, but it would be useful in one place.


    Richard
    Winwaed Software Technology LLC
    http://www.winwaed.com
    See http://www.mapping-tools.com for MapPoint Tools

  3. #3
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    I recently coded a quickie distance test for a project in VBA that uses the great distance formula from the Aviation Formulary..
    http://williams.best.vwh.net/avform.htm

    I hacked at the Excel spreadsheet found on that page to come up with my functions.
    http://williams.best.vwh.net/ftp/avsig/avform.xls

    You can also take a look at this:
    http://www.mp2kmag.com/a73--geodesy.....mappoint.html

    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

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

    Conversion from geographic degrees to metres

    Thank you for your help.

    Nice to know I found the right formula, although they are hard to understand and specially to use.

    IŽll go through your code, Eric, to come up against my conversion problem. It may be what I am looking for.

    IŽll tell you how I am doing.

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

    Conversion from geographic degrees to metres

    I finally found a quicker way to obtain the conversion. Gilles Kohl told me about the DistanceTo method of a Location object. And that really works.

    Thanks!

  6. #6
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    Ah Good!

    The reason I didn't want to use it in my project was because I needed to iteratively calculate the distance hundreds of times until a test condition was met, so I didn't want the overhead of calling MapPoint. For some reason I was thinking you were in the same boat.

    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

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

    Conversion from geographic degrees to metres

    ThatŽs a good consideration, IŽll take it into account. In my program I just need to calculate it once, so I hope I wonŽt be in that situation.

    Thanks again!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Getting informations about geographic coordinates (LatLong)
    By badzio in forum Bing Maps and MapPoint Web Service
    Replies: 4
    Last Post: 08-02-2005, 09:34 AM
  2. Find uses decimal degrees, way to use decimal mi
    By Oyjord in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 06-01-2005, 03:56 AM
  3. Using Geographic Codes to Import Data into MapPoint 2004
    By Anonymous in forum MP2K Magazine Articles
    Replies: 1
    Last Post: 09-22-2004, 06:43 AM
  4. Sourcing UK geographic data
    By Fred Brookes in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 10-21-2003, 12:21 PM
  5. Is there a way to import other geographic boundari....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-01-2000, 06:46 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