MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Distance from edge of polygon

This is a discussion on Distance from edge of polygon within the MapPoint 2006/2009 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. ...


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-26-2006
Junior Member
Yellow Belt
 
Join Date: Apr 2006
Posts: 18
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
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-26-2006
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 903
Blog Entries: 10
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
Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009
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
distance, edge, polygon


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
Getting edge coordinates of zoomed in screen in Mappoint '04 jliao81 MapPoint 2006/2009 Discussion 0 07-04-2005 11:17 AM
Finding a geoevent in a polygon Anonymous MapPoint 2006/2009 Discussion 1 03-15-2005 03:33 AM
Information within polygon Dazzer MapPoint 2006/2009 Discussion 1 04-28-2004 09:50 AM
Distance from Polygon random0000 MapPoint 2006/2009 Discussion 1 04-14-2003 10:18 PM
Query by shape / polygon blackmap MapPoint 2006/2009 Discussion 7 02-12-2003 04:35 AM


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