MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Obtain X, Y from Lat, Long

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


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-27-2003
Junior Member
White Belt
 
Join Date: Oct 2003
Posts: 6
Obtain X, Y from Lat, Long

Hi to all,

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!
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 10-27-2003
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
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
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
lat, long, obtain


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


All times are GMT -5. The time now is 08:22 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
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