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 2 of 2

Distance from edge of polygon

This is a discussion on Distance from edge of polygon within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi All, I have a polygon and 2 locations, location A inside the polygon and location B outside the polygon. ...

  1. #1
    jlewis is offline Member Yellow Belt
    Join Date
    Apr 2006
    Posts
    33

    Distance from edge of polygon

    Hi All,

    I have a polygon and 2 locations, location A inside the polygon and location B outside the polygon.

    Is there a way I can calculate the route (from A to B) and then the distance from the edge of the polygon (where the route crosses the polygon boundary) to location B.

    I may also need to do this with a straight line (from A to B) rather than the actual route - again, I need the distance from where the 'straight line' crosses the polygon boundary to location B.

    Anyone got any ideas?
    John Lewis

  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
    A straight line would be a case of geometry. Go around the polygon, looking for an intersection between the straight line and each segment.

    A route is much more difficult, mainly because MapPoint does not expose the route coordinates in a useful manner. (ie. the route segment locations are for 'best view' and do no necessarily lie on the route!)


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

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Getting edge coordinates of zoomed in screen in Mappoint '04
    By jliao81 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-05-2010, 07:40 AM
  2. Finding a geoevent in a polygon
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-15-2005, 03:33 AM
  3. Information within polygon
    By Dazzer in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-28-2004, 09:50 AM
  4. Distance from Polygon
    By random0000 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-14-2003, 10:18 PM
  5. Query by shape / polygon
    By blackmap in forum MapPoint Desktop Discussion
    Replies: 7
    Last Post: 02-12-2003, 04:35 AM

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