Community of VE/MapPoint Users and Developers
This is a discussion on Obtain X, Y from Lat, Long within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi to all, I'm trying to draw a circle with an inside arrow which shows vehicle heading. To do that, ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Obtain X, Y from Lat, Long I'm trying to draw a circle with an inside arrow which shows vehicle heading. To do that, I need to know X,Y from vehicle position (Lat/Long). Recently, I've created a C# function which retreives two sets of X,Y points on circle, when lined represents a heading: private Point GetAngledLineEndPoint(Point ptCenter, double nRadius, double fAngle) { double x = (double)System.Math.Cos(2*System.Math.PI*fAngle/360)*nRadius+ptCenter.X; double y = -(double)System.Math.Sin(2*System.Math.PI*fAngle/360)*nRadius+ptCenter.Y; return new Point((int)x,(int)y); } Does anyone know how to convert MapPoint Lat/Long into MapPoint X/Y (screen)? Thanks in advance! |
| ||||
|
LocationToX method and LocationToY method will do that.
__________________ John http://www.support-pc.com Order MapPoint 2006 Here https://secure.mp2kmag.com/?refer=support-PC |
![]() |
| Tags |
| lat, long, obtain |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Obtain LatLong with Address | ivan | MapPoint Web Service and Virtual Earth | 5 | 05-24-2007 05:00 PM |
| Lat. and Long. | Anonymous | MapPoint 2006/2009 Discussion | 1 | 02-06-2004 03:09 AM |
| How to obtain ZIP code from lat-long? | BC | MapPoint 2006/2009 Discussion | 1 | 04-29-2003 06:49 AM |
| How do you obtain/set the maps Scale. I.E 1:10000 .... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 06-21-2002 04:07 AM |
| Is there a way I can obtain a copy of the EULA for.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 07-30-2001 08:57 AM |