Community of MapPoint and Bing Maps Users and Developers
This is a discussion on converting lat lon to x y within the MapPoint Desktop Discussion forums, part of the Map Forums category; I have a jpeg of a mappoint map. The jpeg shows a picture of a polygon. What I want to ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| converting lat lon to x y What I want to know is given that I know the length and width of the jpeg (in pixels) and the coordinates of the polygon (in lat lon). How could I convet the lat lon coordinates to x y pixel coordinates. What i'm trying to do is show an this image in a vb .net form and then overlay the image using GDI+ with an interactive polygon. The problem I obviously have is knowing where to plot my polygon. Any ideas would be greatly appreciated. Thanks |
| |||
| X,Y conversion
Are you using MapPoint 2006, or the MapPoint Web Service? If it is the web service, there is a function to handle convert to lat/long which is pretty nice. Once you save a map off in MapPoint 2006 (or earlier) there's not really any way to reference it again from within the COM interface, it's just a gif without a bounding reference. Perhaps someone else has done a hack to workaround this, but I don't know of anyway to do it. Mark M - MSFT |
| |||
|
Hi, You can use XYToLocation to convert x,y pixel coordinates to a Location object, and LocationToX and LocationToY to find the x,y pixel coordinates from a Location object. If I have understeand your question then I think this should be enough to do what you wants to do.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz www.comfortsoftware.be MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| ||||
| Re: converting lat lon to x y
I know its a late reply. It sounds like you have a image of a map and you know the co-ordinates of the 4 corners. You also know the dimensions of the map image It sounds like a matter of dividing the change of degrees by the pixels to determine how many degrees (or portions thereof) are passed per pixel The map linked to below is from MP2002, and the target location is placed using a similiar technique Map Last edited by lfdmike; 11-07-2007 at 05:58 PM.. Reason: changed from img to url tag |
| |||
| Re: converting lat lon to x y
Hi , I want to plot a point in a map when lattitude and longitude is given. I have a .jpg image and i know some of the x y cordinates lattitude and longitude. No other information is available. Now i will be given with a lattiude and longitude and then i have to calculate the x y in the .jpeg image with. Do any of you have some formulas or techinques to do this. Please help me Regards Anish Mathew |
| |||
| Re: converting lat lon to x y
Hi, depends on the zoom factor and projection of the image. but if you know 2 points on x as and also on y as then you can calculate the latitude/longitude per pixel in both directions.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz www.comfortsoftware.be MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: converting lat lon to x y Quote:
I know this post is really ol but I hav been searching evry where for this .... You say if I know 2 points to the X axis and 2 to the y axis I could then calculate the lat/lon per pixel in both directions So if I understand correctly .... then this is what I am wanting to do ... I want know many more lat/lon of several points in both x and y positions .. I would like to then be able to select any point lets say of a given x,y coordinate then and figure its lat/lon value ... cane be done Yes? If so .... I am doing this in vb 2008 express ... If I could see the equation or its vb example either ... I could then write this so it will do exactly what we are talking about ..... All help is much appreciated ...... Mark |
![]() |
| Tags |
| converting, lat, lon |
| ||||
| Posted By | For | Type | Date | |
| Info.com - lon to - www.Info.com | This thread | Refback | 06-08-2009 02:36 PM | |
| lat lon xy - Zuula Search | This thread | Refback | 06-02-2009 08:19 AM | |
| convert lat lon to x y - Zuula Search | This thread | Refback | 01-12-2009 08:10 AM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Converting my Windows app. to ASP | BobFromBoston | MapPoint Desktop Discussion | 7 | 10-17-2005 01:43 PM |
| Converting XY to Lat Long | Anonymous | MapPoint Desktop Discussion | 1 | 11-22-2004 03:35 AM |
| Converting to PDF for large printing | jhnywall | MapPoint Desktop Discussion | 3 | 11-10-2003 09:21 AM |
| Converting a route to waypoints | Anonymous | MapPoint Desktop Discussion | 3 | 06-04-2003 01:27 PM |
| Converting Zip Codes to Lat/Long | Anonymous | MapPoint Desktop Discussion | 2 | 06-01-2003 01:27 PM |