MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Creating my own road closure model

This is a discussion on Creating my own road closure model within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I need to allow the user to specify two points on a roadway which will represent the part of ...


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 (3) Thread Tools Display Modes
  3 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 03-14-2007
Senior Member
Green Belt
 
Join Date: Jul 2005
Posts: 105
Exclamation Creating my own road closure model

Hi,

I need to allow the user to specify two points on a roadway which will represent the part of the roadway that's closed. Can anyone suggest a way to do this within the graphical model of MapPoint? I could assume a mouse click marks the first point of closure and the second mouse click defines the second point. But this method will surely cause user errors and frustrations, when the user is unsure of what to do next. Suggestions are welcome.

Next, I need to be able to determine if the given route, which I step through in the MapPoint.Route.Directions DataSet, has any segment which crosses over the road closure. I think the easiest would be to compare each street name in the DataSet with the road name(s) that are closed. Then if I find a match I could get fancy with GPS coordinates. But I'd love to hear any ideas about how to approach this.

Another approach would be to ask the user for the last house's address before the road closure. Then the same thing on the other end. And I will have a stretch of roadway between the addresses they defined as closed. Any suggestions about how to match this information with the streets as returned by the MapPoint.Rout.Directions DataSet?

Thanks for the help.

I'm determined to get past this shortcoming of MapPoint!

Bob
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 03-14-2007
Senior Member
Green Belt
 
Join Date: Sep 2005
Location: Marshall, Michigan
Posts: 126
Re: Creating my own road closure model

The only real "approved" way to do this is by adding Avoid Areas to the map.

Programmatically, an avoid area is a Shape object of type geoShapeRectangle which has an Avoided property with the value True.

You can add multiple avoid areas to the map, which forces mappoint to route around them. You will most likely need to use more than one avoid area unless your closed road runs truly north-south or east-west.

Your suggestion of prompting for an address would work fairly well in obtaining the start and end points, however it wouldn't get you a usable segment of roadwork. There is no standardized method of "tracing" a route either. As you may well know, there is no real programmatic method in the MapPoint API which provides access to roadway cartographic/coordinate data.

You might try coupling the map with a subset of TIGER Line data records, which would then get you the roadway segment coordinates. I've successfully implemented this in the past for a client.

HTH
Paul
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 03-14-2007
Senior Member
Green Belt
 
Join Date: Jul 2005
Posts: 105
Re: Creating my own road closure model

I understood the Avoid Area map feature requires an intersection to be included in the area. So that makes it useless for me as I understand it. I have roads to close which include no intersection.

Are you related to HTH in Orlando? Do you do freelance work?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 03-14-2007
Senior Member
Green Belt
 
Join Date: Sep 2005
Location: Marshall, Michigan
Posts: 126
Re: Creating my own road closure model

The avoid rectangles do not have to include intersections.

No relation. HTH is short for 'Hope this helps'

Yes, I consult and do freelance work also.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 03-14-2007
Senior Member
Green Belt
 
Join Date: Jul 2005
Posts: 105
Re: Creating my own road closure model

Oh. I misunderstood that key point. I read the MapPoint Help which said it must include an intersection. But very happy to learn it doesn't.

Great! So I need to create a rectangle then convince MapPoint to avoid that area, which is the easy part. If I have a brigde out, for example, why would I need multiple rectangles? Or were you giving an example of when an entire road was closed that I would need multiple rectangles to make up the whole road?

TDH
Bob

(short for "That Did Help")
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 03-14-2007
Senior Member
Green Belt
 
Join Date: Jul 2005
Posts: 105
Re: Creating my own road closure model

Another way to skin the cat might involve my ability to query the Windows MapPoint program for intersections. I learned today that I can use Edit -> Find and enter two street names with an ampersand "&" between them and it will display the intersection of those two roads.

Is there any way to use a wildcard to get all intersections with a given street? If I could do this I could solve the more difficult task of finding what roads of cut off by a closed road.

By wildcard I mean:

Franklin St & ?
Boston
Ma

It doesn't work whtn I try this in the Window program so I'm sure the ActiveX control does not support it. But I'm wondering if there's another way to skin this cat so I can get the intersection list.

Thanks,
Bob

If I could do this I could
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 03-15-2007
Senior Member
Green Belt
 
Join Date: Sep 2005
Location: Marshall, Michigan
Posts: 126
Re: Creating my own road closure model

The reason for using multiple rectangles is the scenario that most streets do not run completely N-S or E-W. When you draw an avoid rectangle, you want to be sure you don't "clip-out" any side streets that are NOT closed. In example, let's say that 12 miles of Interstate 94 in Michigan are closed around the city of Jackson. If you draw a single avoid area to cover this 12 miles, you'll also be clipping out many service drives and minor highways.

In your scenario of a single bridge being out, a single avoid area will most likely be fine.

No - there's no wildcarding avaiable to find intersections. You could conceivably use Wilfried's "Snap To Nearest Road" algorithms to parse along a road and find intersections, but this would be very time consuming. You could also couple with TIGER Line data and determine intersections using some simple aviation formulary code.

HTH, and IGTDH (I'm Glad That Did Help)

-Paul
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
closure, creating, model, road


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/creating-my-own-road-closure-model-5749.html

Posted By For Type Date
Snap to a Road - MapPoint Articles - MP2K Magazine This thread Refback 03-27-2007 03:26 AM
Map Visitors - Powered by Virtual Earth This thread Refback 03-14-2007 09:01 PM
Author - MP2K Magazine This thread Refback 03-14-2007 07:05 PM

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
add road restrictions serguei Wish List 1 11-14-2005 04:23 AM
tip: creating object model of mappoint and SQL command Wilfried MapPoint 2006/2009 Discussion 0 02-24-2005 02:00 PM
How can I find nearest point on a road from a point off-road Anonymous MapPoint 2006/2009 Discussion 1 11-12-2002 07:14 AM
I am looking for GIS software that can model off.... Anonymous MapPoint 2006/2009 Discussion 1 07-04-2002 09:29 AM
What is the "Programming Model" of Mappoint, and h.... Anonymous MapPoint 2006/2009 Discussion 1 08-27-2001 12:56 PM


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