Part III. Creating a Network Data Set
- Open ArcCatalog and locate our geodatabase.
- Right click on our geodatabase and click “New” then “Feature Data Set”
- We will add a new feature dataset to called “ca_transportation”
- Right click on the “ca_transportation” feature class and select “Import Feature Class”
- Fill out the dialogue box as follows:
- Click “OK” to import the Feature Class into the “ca_transportation” layer.
- Right click on “ca_transportation” and go to “Add New Network Dataset”
- Proceed through the New Network Dataset Wizard:
- Give it a name
- Choose ca_roads_1 as the feature class participating in the network dataset.
- Choose to model turns in the network.
- Choose “None” for elevation modeling.
- Add an attribute for the network dataset called “Minutes”
- Make sure the units are minutes in the dialogue box.
- In evaluators, make sure the that “Type” is Field and that the Value is “Time_Minutes”
- Duplicate the “Minutes” field
- Change the value from “Time_Minutes” to “Time_Minutes_LA”; this will be used to model traffic in LA.
- Rename “Minutes_2” to “Minutes_LA”
- Give it a name
- Title the network dataset as “ca_transportation_ND”
- Choose “yes” to build the Network Dataset.
Take a break while the Network Data Set builds
Part IV. Network Analysis
- Close ArcCatalog and re-open ArcMap
- Add the following layers into your map:
- ca_cities
- ca_counties
- Go into the “ca_transportation feature class” and add:
- “ca_transportation_ND”
- Do not add all features that participate in the network database as we don’t really need them.
- “ca_transportation_ND”
- Go to “Customize” and then “Extensions”.
- Make sure the Network Analyst Extension has a check mark next to it, indicating that it is on.
- Right click anywhere near the toolbar and click on “Network Analyst” to turn on the Network Analyst Toolbar.
- Click the Network Analysis Window Icon:
- Our task will be to calculate an Origin-Destination Cost Matrix from the most populous city in California to the next 10 populous cities.
- Click “New OD Cost Matrix”
- New layers should propagate in both the Network Analysis window and the Table of Contents for the project.
- Open the attribute table for ca_cities and order by population_2007.
- Select the highest value, which happens to be Los Angeles.
- With the city highlighted, we will right click on “Origin” and click “Load”
- Return to the table and choose the next 10 cities:
- Right click on Destinations:
- Load the data in.
- Close the attribute table.
- Go back to the Network Analyst toolbar and click on “Solve”
- The Origin-Destinations will be calculated.
- Right click on “Lines” and open the attribute table for the to see to OD-Matrix.
- Export as a csv file to save it out of ArcMap.
- To simulate Los Angeles traffic, we will use the Minutes_LA field.
- First, let’s copy the OD Matrix we just made, by clicking on the Layer in table of contents and clicking “Copy”
- Right click on the “Layer Properties” and choose “Paste Layer”
- You should rename the layer to “OD Matrix LA”
- Now on the Network Analyst window click on “OD Matrix Properties”
- Switch to the “Analysis Settings” window
- Choose Minutes_LA
- Choose to solve the analysis again.
- Open the attribute table for the lines.
- Compare the two OD-Matrices.