Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 3 of 3

Client-Side Point Conversion

This is a discussion on Client-Side Point Conversion within the Bing Maps and MapPoint Web Service forums, part of the Map Forums category; I've implemented a Java version of the C# SDK sample " PointConversion " which works great for almost all uses. ...

  1. #1
    dsearles is offline Junior Member White Belt
    Join Date
    Aug 2004
    Posts
    3

    Client-Side Point Conversion

    I've implemented a Java version of the C# SDK sample "PointConversion" which works great for almost all uses. The algorithms seem to break down, however, with maps viewed from such a "height" that the curvature of the Earth shows on the map (including black areas of "outer space").

    When I use Microsoft Streets & Trips (el cheapo MapPoint client) with it's Location Sensor activated, it correctly shows LAT/LON for these "outer space" areas as "Unknown" but the "PointConversion" algorithm provided with the SDK doesn't seem to handle this. When passed a LAT/LON which should not be visible on the map (because it's beyond the horizon) the algorithm returns the proper X,Y coordinate (but ONLY if the Earth were transparent!) It doesn't seem to be able to indicate that the LAT/LON isn't visible on the map.

    Can you offer any suggestions as to how to prevent this? Can you shed some light on how Streets & Trips (or the MapPoint desktop client) handle this so I can incorporate it into my use of the MapPoint Web Service?

    Thanks!

  2. #2
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60
    Do you have the longitude and latitude of the view point?

    If so, you could compare the coordinate that you are interested in and compare it with the viewpoint. If they are separated by 90 degrees or more, then it is on the other side of the Earth.

    The following site has some calculations that could probably be adapted to make the comparison:

    http://williams.best.vwh.net/avform.htm


    Richard
    Winwaed Software Technology LLC
    http://www.winwaed.com
    See http://www.mapping-tools.com for MapPoint Tools

  3. #3
    dsearles is offline Junior Member White Belt
    Join Date
    Aug 2004
    Posts
    3
    Great suggestion. Works like a champ. Thanks!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Preview Street-side Photos for Live.com
    By Eric Frost in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 06-12-2006, 04:09 PM
  2. client-side mappoint webservice?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 11-23-2004, 08:32 PM
  3. Right side of road routing
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-19-2002, 09:46 PM
  4. in adding vendors in the excel side to be linked t....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-14-2001, 10:18 AM
  5. I have a client who is trying to map out the most ....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-07-2001, 09:10 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96