Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I create a model in ArcGIS using the Network Analyst Tools, I am able to create Locations and make the Route Layer and Solve. However, I need to be able to add barriers as well as locations, before solving for the Route. Is there a way to do this? Thanks! Renee

share|improve this question

Barriers (Point, Line and Polygons Barriers) can be created/per-loaded before the solving to route.

Barriers can be added into barrier classes via the Create Network Location ToolCreate Network Location Tool on the Network Analyst toolbar, the Load Locations dialog box, or the Add Locations geoprocessing tool. When barriers are created, loaded, or added, they affect only the items checked on the Network Locations tab of the network analysis layer's Layer Properties dialog box. This is true even when a barrier intersects layers that are unchecked on the Network Locations tab

Loading Point Barriers

When a point barrier is loaded or created, it snaps to the nearest network edge or junction within a search tolerance. The position of the barrier on the network is specified by the network location fields (SourceID, SourceOID, SideOfEdge, and PosAlong). When a restriction point barrier is on an edge, you can opt to restrict travel across the point barrier only, or restrict the edge entirely. A scaled cost point barrier adds a cost whenever it is crossed.

Line and Polygon Barriers also supported

Edit to add information

This screen shot might help clear it up - just add a new location of "barrier" type to your network analyst layer. In the screen shot, all 3 (start/end/barriers) are feature sets for the user to provide input with.

enter image description here

share|improve this answer
Wonderful! Thank you for that quick response! – Renee Cammarere Jan 4 '13 at 21:04

The thing that I'm having trouble with now (with the new model that includes barriers) is that when I run the model, then when I click on locations, I don't know if the process sees the locations as barriers or stops. I get error messages when it runs. How can I indicate which I am clicking on when it runs? Thanks.

share|improve this answer
See the screen shot above? The location you're adding is set as a Barrier. The point you provide into each feature set already has its behavior defined. - the easiest way to test this in Desktop is to run it with 2 stops ( each on the same line, with 1 full street inbetween), then add the barrier on the same street inbetween the 2 intersections. The round should move around the barrier instead of straight line – KHibma Jan 7 '13 at 16:48
OK, thanks. I was able to resolve this and also to integrate the addition of barriers into my C# code. Now I just need to be able to indicate somewhere in the model, that the Barriers input parameter is optional, because I can't use the existing gpk that I created from the model unless I input barriers as well as Stops. Any thoughts? Thanks again! – Renee Cammarere Jan 8 '13 at 13:49
I guess I can't change this input parameter to "optional". I'll have to take another look at my model to see if there is a way around this. – Renee Cammarere Jan 8 '13 at 14:32

Your Answer


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.