MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




converting lat lon to x y

This is a discussion on converting lat lon to x y within the MapPoint 2006/2009 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 ...


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 07-18-2006
Senior Member
Green Belt
 
Join Date: Sep 2003
Posts: 103
converting lat lon to x y

I have a jpeg of a mappoint map. The jpeg shows a picture of a polygon.

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
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 07-18-2006
Junior Member
Yellow Belt
 
Join Date: Dec 2005
Posts: 22
Send a message via AIM to Mark - MSFT
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
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 07-19-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
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.
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 07-19-2006
Senior Member
Green Belt
 
Join Date: Sep 2003
Posts: 103
Not quite what I need to do but it has given me an idea. 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
  #5 (permalink)  
Old 11-07-2007
lfdmike's Avatar
Member
Green Belt
 
Join Date: May 2004
Posts: 54
Blog Entries: 7
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
__________________
Mike Mueller
Lannon Fire Department

Last edited by lfdmike; 11-07-2007 at 05:58 PM. Reason: changed from img to url tag
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 08-14-2008
Junior Member
White Belt
 
Join Date: Aug 2008
Posts: 1
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
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 08-14-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
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.
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
converting, lat, lon


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
Converting my Windows app. to ASP BobFromBoston MapPoint 2006/2009 Discussion 7 10-17-2005 01:43 PM
Converting XY to Lat Long Anonymous MapPoint 2006/2009 Discussion 1 11-22-2004 03:35 AM
Converting to PDF for large printing jhnywall MapPoint 2006/2009 Discussion 3 11-10-2003 09:21 AM
Converting a route to waypoints Anonymous MapPoint 2006/2009 Discussion 3 06-04-2003 01:27 PM
Converting Zip Codes to Lat/Long Anonymous MapPoint 2006/2009 Discussion 2 06-01-2003 01:27 PM


All times are GMT -5. The time now is 04:16 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