Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm trying to sort out network analysis in ArcGIS 10.

Toy example of finding shortest distance between two points looks something like that :

closest facility output

Where squares are two locations, and the green line is an output from Closest Facility tool.

What I need to do, is to restrict motorways and slip roads from the analysis. So the new route should avouid the red segments:

restricted

What is the best strategy to proceed in such case?

Should I edit my network and delete all the segments I do not want to have in analysis? Or perhaps use linear Barriers?

Thanks for help!

share|improve this question
add comment

2 Answers

up vote 8 down vote accepted

There is more than one solution to this problem.

This is a way that I would recommend:.

Assuming ArcMap is your primary tool:

  1. Open the attribute table of the network source features.

  2. Add a field of type "Short" (any integer type will do). This will effectively be a boolean value. Give it a name that would describe it as a restriction.

  3. For each road segment that meets your restriction parameters (i.e. motorways, slip roads) calculate that row's restriction value to be 1. All segments with a zero (or NULL) restriction value will be traversable.

  4. Add this value as a network restriction attribute and use a "field evaluator". You will need to "rebuild" your network. (Alternatively, use the New Network Dataset Wizard to create a new network dataset)

Supplementary information:

Feel free to ask for clarification if you run into any difficulty =)

share|improve this answer
    
Thanks a lot! Worked as a charm :] Much more elegant than deleting! –  radek Sep 5 '11 at 16:48
add comment

This approach that @Allan Adair shown, it will definitely work, however in this case these road links you have restricted will become non-traversable.

I approach this in another way - you usually do want to be able to go through such roads when travelling between points, you just don't want your routes to start and stop on them. So instead of restricting these road segments, all you have to do is just to tell the Network Analyst that you don't want your routes to start and stop right on the motorways, tunnels, ramps etc.

You can achieve these by adding a field in your roads feature class and then calculting it with a value that you will exclude later on. Then you use snapping network locations option, where you specify that you don't want your route Stops to be snapped to those roads with the value you have just calculated. In the data obtained from vendors, the information of road type is usually included so you can just do a selection and then run a field calculator session. After you are done, you will be able to route through the tunnels, motorways, ramps etc., yet will not be able to start or stop your route on.

First figure: your stop is located right on top of a tunnel, yet a stop is being snapped to a closest "snappable" road link, i.e., the one that hasn't -1.

enter image description here

Second figure: you are still able to route through the road links that have -1 in a Snapping field you've specified earlier. enter image description here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.