MapPoint Forums

MapForums

Community of MapPoint and Bing Maps Users and Developers




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


Go Back   MapPoint Forums > Map Forums > MapPoint Desktop Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-24-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 09-24-2004
Winwaed's Avatar
Mapping-Tools.com
Black Belt
 
Join Date: Feb 2004
Posts: 1,352
Blog Entries: 33
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
See the Geoweb Guru for online mapping
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 09-24-2004
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 3,503
Blog Entries: 3
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
__________________
~ Now taking orders for MapPoint 2010 ~
~~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 09-27-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 09-27-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 09-27-2004
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 3,503
Blog Entries: 3
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
__________________
~ Now taking orders for MapPoint 2010 ~
~~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 09-27-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
conversion, degrees, geographic, metres


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Getting informations about geographic coordinates (LatLong) badzio Bing Maps and MapPoint Web Service 4 08-02-2005 08:34 AM
Find uses decimal degrees, way to use decimal mi Oyjord MapPoint Desktop Discussion 1 06-01-2005 02:56 AM
Using Geographic Codes to Import Data into MapPoint 2004 Anonymous MP2K Magazine Articles 1 09-22-2004 05:43 AM
Sourcing UK geographic data Fred Brookes MapPoint Desktop Discussion 0 10-21-2003 11:21 AM
Is there a way to import other geographic boundari.... Anonymous MapPoint Desktop Discussion 1 11-01-2000 05:46 AM


All times are GMT -5. The time now is 08:26 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
MP2K Magazine
Visitor Map



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