About The Arcgis Network Analyst Tutorial: Objective
About The Arcgis Network Analyst Tutorial: Objective
The ArcGIS Network Analyst extension allows you to build a network dataset and perform
analyses on a network dataset. The best way to learn Network Analyst is to use it. In the
exercises you will do the following:
Objective:
1. Use ArcCatalog / ArcMap to create and build a network dataset from feature classes
stored within a geodatabase.
2. Define connectivity rules and network attributes for the network dataset.
3. Perform various network analyses in ArcMap using the Network Analyst toolbar.
Requirements :
2. Data with its attributes (Speed, Travel Time, Road Hierarchy, Connectivity
information, Oneway information etc..)
2. Start ArcCatalog by clicking Start > All Programs > ArcGIS > ArcCatalog 10.7.1
Click Close.
6. Click OK.
A shortcut to the folder is added to the Catalog Tree under Folder Connections.
The feature classes the feature dataset contains are listed on the Contents tab
of ArcCatalog.
9. Right-click the Transportation_Road feature dataset and right click New > Network
Dataset.
The reason for the difference is that geodatabase networks allow you to use multiple
sources that are stored in the feature dataset to create a multimodal network, while
shapefile-based network datasets are only capable of handling a single source
feature class.
12. Check the Streets feature class to use it as a source for the network dataset.
Click Next.
14. Check <Global Turns>, which enables you to add default turn penalties
Click Next.
The Connectivity dialog box opens. Here you can set up the connectivity model for the
network. There are two options are there. If you select Endpoint connectivity, features
will connect at their end point. If you select Any point Connectivity all streets lines can
connect even if they don’t have an “end point” at this location.
16. Click OK to return to the New Network Dataset wizard.
18. This dataset has elevation fields, so make sure that the Using Elevation Fields option is
chosen.
There are two ways to model elevations: using true elevation values from geometry or
using logical elevation values from elevation fields.
The Streets feature class has logical elevation values stored as integers in the F_ELEV
and T_ELEV fields. If two coincident endpoints have field elevation values of 1, for
example, the edges will connect. However, if one endpoint has a value of 1, and the
other coincident endpoint has a value of 0 (zero), the edges won't connect. ArcGIS
Network Analyst recognizes the field names in this dataset and automatically maps them, as
shown in the graphic below. (Only integer fields can serve as elevation fields.)
Click NEXT
ArcGIS Network Analyst analyzes the source feature class (or classes) and looks for
common fields like Meters, Minutes (FT_Minutes and TF_Minutes, one for each
direction), and Oneway Hierarchy.
If it finds these fields, it automatically creates the corresponding network attributes and
assigns the respective fields to them. (This can be viewed by clicking Evaluators.)
Click the Meters row to select it, and then click Evaluators to examine how the values of
network attributes are determined.
The table on the Source Values tab lists the source feature classes. Linear source
feature classes, which become edge elements in the network dataset, are listed twice;
once for the from–to direction and once for the to–from direction. (The directions are in
relation to the digitized direction of the source line feature.) The Type column shows the
type of evaluator used to calculate the network attribute values. The Value column holds
information the evaluator needs to calculate attribute values.
From the Attribute drop-down list, click each type of attribute, one at a time, and inspect
the evaluator types and values for the source feature classes.
The blue symbol is not marked in the attribute. This means the hierarchy won't be used
by default when an analysis layer is created with this network dataset.
Click Next.
21. Define the Travel mode and impedance in the below dialog box.
Click Next..
After building the network dataset, it prompts for the errors if any, else it will prompt the below
message to add all feature classes participated in network dataset.
I. Adding Network
1. Open the ArcMap 10.7.1 and add created required feature classes and Network Dataset.
2. Click Customize > Toolbars > Network Analyst.
3. If the Network Analyst window is not displayed, you need to add it.
4. On the Network Analyst toolbar, click the Show/Hide Network Analyst Window button . The
dockable Network Analyst window opens.
5. You can dock or undock the Network Analyst window. In this exercise, it is docked beside the
Table Of Contents window.
6. Add the Network Dataset and all the layers participated in it.
1. Click Network Analyst on the Network Analyst toolbar and click New Route.
2. The route analysis layer is added to the Network Analyst window. The network
analysis classes (Stops, Routes, Point Barriers, Line Barriers, and Polygon Barriers)
are empty.
The analysis layer is also added to the Table Of Contents window.
III. Adding a stop
1. In the Network Analyst window, click Stops (0). Stops is selected, which means it is the
active network analysis class.
2. On the Network Analyst toolbar, click the Create Network Location Tool . By clicking on the
map with the Create Network Location Tool, you can add network analysis objects to the
active network analysis class.
4. ArcGIS Network Analyst calculates the nearest network location and symbolizes the
stop with the Located symbol. The stop remains selected until another stop is placed
or you clear the selection.
5. The located stop also displays the number 1. All stops have a unique number,
which represents the order in which the stop will be visited by the route. Also
notice that the Stops class in the Network Analyst window now lists one stop.
The first stop is treated as the origin, and the last as the destination.
The sequence of the stops can be changed by clicking a stop in the Network Analyst
window and dragging it to another position in the list.
If a stop is not located on the network, it appears with an unlocated symbol. (However,
using the default settings, you would need to place a stop more than 5 kilometers from
the nearest street segment for it to not locate.)
You can move an unlocated stop closer to the network to locate it. If a stop is located on
the network but in the wrong location, you can move the stop to the correct position
To move a stop, follow these substeps:
a. Click the Select/Move Network Locations Tool on the Network Analyst toolbar.
b. Click a stop to select it.
c. Click the stop again and drag it to a new location.
1. Click the Analysis Layer Properties button on the Network Analyst window.
This network dataset has TravelTime (Minutes) attribute. If you choose to enter a start
time by checking Use Start Time and filling out the three fields below it, Network
Analyst will find the quickest route based on that time of day. Alternatively, it will find
the quickest route based on a function of street lengths and speed limits.
3. Check Use Start Time, enter a specific time and date or day of the week.
5. You can specify time windows for stops and have ArcGIS Network Analyst try to find
a route that honors those time ranges in which a stop should be visited.
8. Click the Output Shape Type drop-down arrow and choose True Shape with
Measures.
9. Make sure that the Use Hierarchy and Ignore Invalid Locations boxes are
checked.
10. In the Restrictions frame, make sure that RestrictedTurns and Oneway are
checked.
11. In the Directions frame, make sure that Distance Units is set to KM, Use Time
Attribute ischecked, and the time attribute is set to TravelTime (Minutes).
12. The Analysis Settings tab should look like the following graphic; however, your Use Start
Time properties may be different:
Click OK
V. Computing the best route
Click the Solve button on the Network Analyst toolbar. A route feature appears in the map display
and in the Network Analyst window under the Routes class.
If a warning message appears, a stop may be located on a restricted edge. Try moving one or
more stops using the Select/Move Network Locations Tool , which is on the Network Analyst
toolbar.
Click the Directions Window button on the Network Analyst toolbar. The Directions dialog box
opens.
On the rightmost column of the Directions dialog box, click one of the links named Map. An inset
map of the maneuver is displayed.
Click Close.
VI. Adding a barrier
In this section, adding a barrier on the route to represent a roadblock, and you will find an
alternate route to your destination.
In the Network Analyst window under Point Barriers (0), click Restriction (0).
Click the Create Network Location Tool on the Network Analyst toolbar.
Click the Solve button on the Network Analyst toolbar. A new, alternative route is computed that
avoids the barrier.
Exercise 3: Finding the closest fire stations
In this exercise, we can find the four fire stations that can provide the quickest response to a
fire at a given address. You will also generate routes and driving directions for the firefighters
to follow.
I. Preparing display
1. On the Network Analyst toolbar, click the Show/Hide Network Analyst Window button .
The dockable Network Analyst window opens.
2. You can dock or undock the Network Analyst window. In this exercise, it is docked below
the Table Of Contents window.
The closest facility analysis layer is added to the Network Analyst window. And the network
analysis classes (Facilities, Incidents, Routes, Point Barriers, Line Barriers, and Polygon Barriers)
are empty.
.
Choose FireStations feature class from the Load From drop-down list.
Click OK.
Five fire stations are displayed in the map as facilities and listed in the Network Analyst window.
IV. Adding an incident
Add an incident by manual placement.
Select the Incidents in Network Analyst Window and right click and select Load Locations
/ place the incident manually by selecting Create Network Location Tool on Network
Analysis Toolbar.
Place the incident location manually or from Find Tool. Define the Search Tolerance as
desired. Incident place mannualy on the below screen displaying in Green colour.
1. Click the Analysis Layer Properties button on the Network Analyst window.
ArcGIS will search for fire stations that are within three minutes of the fire on Twin
Peaks Boulevard. Any fire stations outside the cutoff time are ignored.
4. Increase Facilities to Find to 5.
5. ArcGIS will search for a maximum of four fire stations from the fire site. However, the
threeminute cutoff still applies; therefore, if only three fire stations are within the Fifteen -
minute cutoff, then a fourth fire station will not be found.
7. The search results emanate out from the fire stations, which are loaded as facilities. This
mimics the fire engines traveling from the stations to the fire (incident).
9. Click the Output Shape Type drop-down arrow and choose True Shape with Measures.
13. In the Directions frame, make sure that Distance Units is set to Miles, Use Time Attribute is
checked, and the time attribute is set to TravelTime (Minutes).
14. Your Analysis Settings tab should look like the following graphic:
Click OK.
VI. Identifying the closest facilities
Click the Solve button on the Network Analyst toolbar
Note that you configured the analysis to find four facilities within a Fifteen minutes cutoff;
however, only Two facilities are within the cutoff.
Exercise 5: Calculating service areas
In this exercise, creating a series of polygons that represent the distance that can be reached
from a facility within a specified amount of time. These polygons are known as service area
polygons.
Also can calculate 3-, 5-, and 10-minute service areas and find how many facilities are within
each of these service areas. You will identify one PHC that should be relocated to better
service the Blocks. Additionally.
1. Start ArcMap by clicking Start > All Programs > ArcGIS > ArcMap 10.7.1
2. Double-click E44M11.mxd. The map document opens in ArcMap. Enable the Network Analyst
extension.
3. Click Customize > Toolbars > Network Analyst to add Network Analyst Toolbar. The Network
Analyst toolbar is added to ArcMap.
4. If the Network Analyst window is not displayed, you need to add it.
On the Network Analyst toolbar, click the Show/Hide Network Analyst Window
button. The dockable Network Analyst window opens.
You can dock or undock the Network Analyst window. In this exercise, it is docked beside
the Table Of Contents window.
I. Creating the service area analysis layer
1. Click Network Analyst on the Network Analyst toolbar and click New Service Area.
The service area analysis layer is added to the Network Analyst window. The network
analysis classes (Facilities, Polygons, Lines, Point Barriers, Line Barriers, and Polygon
Barriers) are empty.
Add PHC as facilities for which the service area polygons will be generated. On the
Network Analyst window, right-click Facilities (0) and choose Load Locations.
The Seven facilities are displayed in the map. In the Network Analyst window, click the
plus (+) sign next to Facilities (7) to see a list of the loaded facilities.
Click the Analysis Layer Properties button on the Network Analyst window.
Detailed polygons are more accurate but need more time to be generated.
This is a post-process that trims the outside polygon to remove spikes but takes
a little longer to run.
This results in individual polygons for each facility. A polygon from one facility
might overlap with a polygon from another, nearby facility.
This excludes areas of smaller breaks from the polygons of a bigger break.
The service area polygons appear on the map and on the Network Analyst window.
The polygons are transparent, which allow you to see the underlying streets. However,
instead of color coding the breaks from dark to light with increasing distance, you will
change them to go from light to dark.
7. In the Table Of Contents window, right-click the Polygons sublayer and choose
Properties.
Click the Symbol field name and choose Flip Symbols. (Make sure you click—not right
Click OK.
The outer and inner service area breaks switch colors, making it clearer what areas the
In the Table Of Contents window, click and drag blocks to the top of the Layers list to
improve visibility.
Click Apply.
The Blocks that are within the polygons are selected; however, you want to select the
blocks that are outside the service area polygons.
In the Table Of Contents window, right-click Stores and click Selection > Switch
Selection.
The selection now shows the Blocks not contained in any service area polygons.
Use this selection to identify the area in which you will relocate a Primary Health Center.
On the Tools toolbar, click the Clear Selected Features button .
Look at the service area polygons of Primary Health Centers #5 & #6. There are very
less Blocks within the service areas around Primary Health Centers #2; hence, you will
relocate that PHC to cover more Blocks.
Click the Select Move Network Location Tool on the Network Analyst toolbar.
On the map display, drag PHC #2 to the center of the map as shown below.
10. Run the process to compute the service area
The service area polygons appear on the map and the Network Analyst window.
Exercise 5: Creating an OD cost matrix analysis layer
You can create an origin–destination cost matrix for Health Checkups conducted by the
Primary Health Centers at Anganwadi Centers / Sub centers located. The results of this
matrix can be used to identify such Local Health Centrs that will be serviced by each PHC
within a 10-minute drive time. Also, you can find the total drive time from each PHC to its
sub centers.
In the Table Of Contents window, uncheck the Service Area analysis layer to improve
readability of the map.
Click Network Analyst on the Network Analyst toolbar and click New OD Cost Matrix.
The OD cost matrix analysis layer is added to the Network Analyst window. The
network analysis classes (Origins, Destinations, Lines, Point Barriers, Line Barriers, and
Polygon Barriers) are empty. OD Cost Matrix layer also added.
1. Adding origins
You can use the facilities from the service area analysis (in the previous sections) as
origins. If not completed the section on service areas, you can use the HealthCareCenter
feature layer instead.
In the Network Analyst window, right-click Origins (0) and choose Load Locations.
The Load Locations dialog box opens.
Click ServiceArea / Facilities in the Load From drop-down list.
Click OK.
The Seven new origins are displayed on the map and listed in the Network Analyst
window under Origins.
2. Adding destinations
In the Network Analyst window, right-click Destinations (0) and choose Load Locations.
Under Location Analysis Properties, for the property name, choose NOM from the Field
drop-down list.
Next, you will specify that your OD cost matrix will be calculated based on drive time.
You will set a default cutoff value of 10 minutes and ensure that all destinations are found
within the specified cutoff. Additionally, you will specify that U-turns are allowed
everywhere and the output Shape type should be a straight line. Since all these trips are
on roads, one-way restrictions must be followed. All invalid locations (locations not
found) will be ignored.
Click the Analysis Layer Properties button on the Network Analyst window.
Make sure that the Impedance drop-down list is set to DriveTime (Minutes).
This will create origin–destination paths from each PHC to all sub-centers that can
be reached within 10 minutes.
The OD lines appear on the map. There are 68 lines in this example. This number may
be different for you, depending on where you relocated Warehouse #2.
If the Service Area layer is not displayed, turn it on to show the OD Cost Matrix layer on
top of the service areas of the warehouses.
5. Allocating sub-centers to PHCs
Based on the OD cost matrix, you can now identify the sub-centers that would be served
by each warehouse.
In the Network Analyst window, right-click Lines (68) and choose Open Attribute
Table.
The Lines table represents the origin–destination cost matrix from each PHC to the sub-
centers within a 10-minute drive time. The OriginID column contains IDs of PHCs. The
DestinationID column contains IDs of sub-centers. The DestinationRank is a rank
assigned to each destination that is served by a sub-centers based on the total drive
time. For example, in the table below, for PHC #75, DestinationID 15 has a rank of 1.