Community of VE/MapPoint Users and Developers
This is a discussion on XYToLocation Limitations within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Has anyone else experienced a problem with the MapPoint Control and XYToLocation method? I have used this method with VBA, ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| XYToLocation Limitations Sample output from running my code: height = window height width = window width x = height/2 y = width /2 Long = resultant longitude Lat = resultant latitude Alt = current map altitude Code: height: 474 width: 788 x: 237 y: 394 Long: -118.340380094652 Lat: 33.7549985135525 Alt: 20 height: 410 width: 700 x: 205 y: 350 Long: -118.343601811638 Lat: 33.7523305436096 Alt: 20 height: 266 width: 658 x: 133 y: 329 -2147024809 The parameter is incorrect. Long: 0 Lat: 0 Alt: 20 height: 197 width: 591 x: 98 y: 296 -2147024809 The parameter is incorrect. Long: 0 Lat: 0 Alt: 20 height: 127 width: 579 x: 64 y: 290 -2147024809 The parameter is incorrect. Long: 0 Lat: 0 Alt: 20 height: 133 width: 414 x: 66 y: 207 -2147024809 The parameter is incorrect. Long: 0 Lat: 0 Alt: 20 height: 266 width: 525 x: 133 y: 262 Long: -118.362419905387 Lat: 33.7366550973123 Alt: 20 height: 164 width: 180 x: 82 y: 90 Long: -118.301369519975 Lat: 33.7874543229921 Alt: 20 height: 129 width: 170 x: 64 y: 85 Long: -118.316505793891 Lat: 33.7748780336992 Alt: 20 height: 94 width: 241 x: 47 y: 120 -2147024809 The parameter is incorrect. Long: 0 Lat: 0 Alt: 20 height: 122 width: 236 x: 61 y: 118 Long: -118.359875718943 Lat: 33.7387751003645 Alt: 20 height: 110 width: 221 x: 55 y: 110 Long: -118.300049711108 Lat: 33.7885592398372 Alt: 2 |
| ||||
|
Doesn't XYToLocation map screen coordinates to Locations? In which case, any X,Y screen coordinate outside of the current window is invalid by definition. Also, as you zoom in, I would expect the accuracy to get better. Richard
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009 |
![]() |
| Tags |
| limitations, xytolocation |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MP2004 - XYToLocation | AndyWood | MapPoint 2006/2009 Discussion | 2 | 06-05-2006 11:13 AM |
| plotting pushpin limitations | Anonymous | MapPoint Web Service and Virtual Earth | 2 | 11-11-2004 12:57 PM |
| How can I overcome the limitations of "Avoid Area" | Anthony_Hunt | MapPoint 2006/2009 Discussion | 2 | 05-26-2004 07:58 AM |
| Limitations of 10,000 records with MapPoint 2002 (Trial) | Anonymous | MapPoint 2006/2009 Discussion | 1 | 01-05-2003 05:55 PM |