MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Wrong answer from ConvertToLatLong

This is a discussion on Wrong answer from ConvertToLatLong within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I'll try to make this short and understandable. I am trying to get the CORRECT lat/long points from a rendered ...


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 09-12-2002
Junior Member
White Belt
 
Join Date: Sep 2002
Posts: 1
Wrong answer from ConvertToLatLong

I'll try to make this short and understandable.

I am trying to get the CORRECT lat/long points from a rendered image in a picturebox using the ConvertToLatLong function. As you mouse over (or click ) the X and Y of the picture box are passed into the "convert" function which then gives you the lat/long correspning to that point.

1. If I create a brand new MapView, choose a centerpoint and don't set any MapOptions I get the correct results.

BUT...

2. If I set scale (or height & width) I get whacked out results. The same goes for zooming or panning (even after #1 above). So for example when my program first comes up I would like to see the US. So I create a new MapView and set the height and width at like 4000. I click on an area like Buffalo, NY which should give me (lat/long of 40s/-70s) and I get things in the (17s/-108s)

I have tried a NUMBER of different work arounds and I have read the documentation over and over. I just don't understand why it is messed up.


One thing I can say is if I run #1 and then zoom out say (3x) - I get the view of the US. My CenterPoints in both #1 and #1-zoom3 are the same,, my scale, height, width and ESPECIALLY Bounding Rectangle are all VERY different, BUT the only thing I have adjusted is the Zoom.

I hope someone can help me out. If I have not been clear, please let me know.

Thanks in advance.

Daryl
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 09-19-2002
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,465
Blog Entries: 1
Did you figure out the solution to your problem? There's a geodesy library on this site you might poke around:
http://www.mp2kmag.com/articles.asp?...odesy.mapstuff

Let us know if you figure it out..

Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
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 09-20-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
I did figure it out - after extensive testing it was user error.

I had switched X and Y in a function call, but what masked that as the fact was that when you were zoomed in close, it really didn't matter what the X and Y pixles were, you were looking at a SMALL difference in lat/long on a close zoom so it "seemed" like it was the ConvertFunction was working because you got "correct looking" results.

Only when the mapped was zoomed out did the difference in X,Y and Lat/Long manifest itself. With the X and Y switched I was getting very strange values when looking at a map zoomed out to say the "USA" level.

-Daryl
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
answer, converttolatlong, wrong


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
Nobody knows the answer? How to retrieve the name of country Abilio Serafim MapPoint 2006/2009 Discussion 1 04-29-2005 11:09 AM
PLZ... answer me coz am very very new ! tracking_sys MapPoint 2006/2009 Discussion 0 01-28-2004 02:43 AM
In response to an answer that I received earlier. .... Anonymous MapPoint 2006/2009 Discussion 1 05-13-2002 01:57 PM
Thanks for the answer on Pocket Streets map size. .... Anonymous MapPoint 2006/2009 Discussion 1 11-14-2001 07:41 PM
27/10/01 Thanks for your previous answer but the .... Anonymous MapPoint 2006/2009 Discussion 1 10-27-2001 12:42 AM


All times are GMT -5. The time now is 10:18 AM.


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