Community of VE/MapPoint Users and Developers
This is a discussion on Conversion from geographic degrees to metres within the MapPoint 2006/2009 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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Conversion from geographic degrees to metres 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. |
| ||||
|
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 Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009 |
| ||||
|
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
__________________ |
| |||
| 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. |
![]() |
| Tags |
| conversion, degrees, geographic, metres |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Getting informations about geographic coordinates (LatLong) | badzio | MapPoint Web Service and Virtual Earth | 4 | 08-02-2005 09:34 AM |
| Find uses decimal degrees, way to use decimal mi | Oyjord | MapPoint 2006/2009 Discussion | 1 | 06-01-2005 03:56 AM |
| Using Geographic Codes to Import Data into MapPoint 2004 | Anonymous | MP2K Magazine Articles | 1 | 09-22-2004 06:43 AM |
| Sourcing UK geographic data | Fred Brookes | MapPoint 2006/2009 Discussion | 0 | 10-21-2003 12:21 PM |
| Is there a way to import other geographic boundari.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 11-01-2000 06:46 AM |