Sunteți pe pagina 1din 16

Author: Raymond Treier

Subject: Define a new network database


Description of the exercise: With some simply instructions you will digitize a network of streets and make it fit for a network database. As a template you will use the map of Solothurn (scale: 1:50000). 1 Preparing Data: Open a new Blank Map
Define for the new exercise the Swiss coordinate system:

CH1903_LV03 (Edit\Predefined\Projected Coordinate


Systems\National Grids\ Europe \ CH1903_LV03)

Add the data Clip_PK50.tif from the directory

iNotes\Network\Strassen_Solothurn\Data
2 Define new Data: Define a new layer with the name Strassen in the directory iNotes\Network\Strassen_Solothurn\Results Name of the layer: Strassen Typ: Polyline Coordinate System: CH1903_LV03 3 Digitizing a part of the highway First let us digitize a part of the highway near Solothurn. Start the process in the western part of the map and finish it on the branch of Luterbach (see Screenshot). Take care that on every exit of the highway you make a vertex (it means that you will click on the left button of the mouse). Digitize the part of the highway until the motorwaybranch near Luterbach Open the attribut table of the layer Strassen You will see that there is only one Polyline defined. If you want to handle it as a network database, you need to have nodes. You will use these nodes to develop afterwards the network database. We will digitize later on more streets in different categories.

Author: Raymond Treier

Segmentation of the digitized street Open in ArcToolbox the following tool: Data Managment Tools Features

Split Line at vertices

Call the output data with the name network_streets and save it in the direcotry iNotes\Network\ Strassen_Solothurn\Results

Confirm the form with OK Open the attribut table of the new layer You can see that the digitized street has been segmented in many parts. These vertices will be the nodes.

Adding informations to the attribut table: Define three new fields: lenght (Double) / categories (Short Integer) / travel (Double)

Author: Raymond Treier

First we make some calculations. It is not necessary to open the editor.

Put the cursor on the fieldname length Calculate Geometry Property length

categories FieldCalculator Insert the value 1

travel FieldCalculator dim time if [categories] = 1 then time= [length]*60/120000 elseif [categories] = 2 then time= [length]*60/70000 Activate Show Codeblock Insert the following formula und save it in the directory iNotes\Network\Strassen_Solothurn\Results Assumptions: categories 1: motorway (velocity 120 km/h, 120000 m) categories 2: mainstreet (70 km/h) categories 3: arterialstreet (50 km/h) the calculates fields looks as follows: else time= [length]*60/50000 end if ________________________ time

Author: Raymond Treier

Define the digitized street as a network file

network_streets New Network Dataset . The first two formulas you can continue In the third formula, klick on Connectivity Choose in Connectivity Policy Any Vertex!

In the fifth formula (Attributes) you have to insert some addings.

Define with Add two attributes: length: Units: Meters Data Type: Double travel: Units: Minutes Data Type: Double

Because of the fact that we have made some changes in the attribut table of the layer network_streets (with the fields length, categories and travel), we dont need to make any other additions. Finish the process in confirme the next formulas.

Author: Raymond Treier

Working in a network database Activate the Toolbar Network Analyst in the menue {Customize} Toolbars Network Analyst

Choose in the Pulldown-menue Network Analyst:

New Route
Click on the symbol (Create Network Location Tool) Define two different stops on the digitized street by clicking with the left mouse button.

Solve

The route will be visible

Reading Results

Open the network window Open Routes(1) by clicking on the +

Graphic Pick 1 Graphic Pick 2 Properties

Author: Raymond Treier

Total length: 10691.18 m (10,69 km) could be right! What time you need for this distance?

Open Route Properties Activate in the register Accumulation both parameters (length and travel).

OK Solve Now you can read also the time! 5.345 minutes it means that the velocity is abaout 120.01 km/h! (categories1 = 120 km/h . Its correct!)

Author: Raymond Treier

Moving stops:

You can change the position of a stop with the symbol (Move Network Location) Deselect any selctions (if you have selected items) Activate Stops(2) in the Network Analyst Window Click on a stop. It will be marked. With the left mouse button pressed you can change the stop. Solve the new situation You can also drag the Graphic Pics in the Network Analyst Window in another order You can also add more stops! Experience yourself

10

Developing the network database The next step is to digitize more streets.
The TOC should now look as

Delete any Routes in the TOC with remove

follows:

Delete the old layer Strassen network_streets Edit Features Start Editing

Click in the window Create Features on network_streets Choose in the Construction Tools Line Start Editing in the western part of the map in the region of Grenchen. Digitize the red streets (mainstreets) Interrupt wit a double -click all the important places, where 7

Author: Raymond Treier

other streets should be attached later on on the existing network (important arterialstreets). You create with this method Vertices you can use later on without splitting the whole layer again. Take care that you continue the process of digitizing on the same place where you have made the double click. (Hint: the existing vertex will be indicated with network_streets: Vertex!)

It means that you snap on the vertices of the existing network!

Save in the Editor Toolbar the new digitized streets (Save Edits) and stop the process of editing with Stop Editing. Open the attribut table of the layer network_streets. We have to recalculate the new parts of the streets. But first we had to establish a new categorie of streets. You have digitezed now some red streets. These are mainstreets and they have the number of categories 2. We must write these numbers (2) dierctly in the attribut table.

network_streets Edit Features Start Editing Write in the new segments of the streets in the attribut table under categories the number 2. Recalculate the field length (Calculate Geometry) Recalculate the field travel with the Field Calculator (Load the formula travel, explained on the page 3) Save Edits Stop Editing Now we have to update the network database!

Click in the toolbar of the Network Analyst the following 8

Author: Raymond Treier

symbol

(Build Network Dataset)

The new vertices in the mainstreets are now visible.

Experience with the new developed network and calculate some velocities to see that there are different categories of streets now. The average velocity should be smaller than 120 km/h. We conclude now the network database with some arterialstreets (categorie 3) network_streets Edit Features Start Editing Digitize some arterialstreets in the region of Grenchen Take attention that you start always on the existing vertices, which are indicated (see page 6).

Save in the Editor Toolbar the new digitized streets (Save Edits) and stop the process of editing with Stop Editing. Open the attribut table of the layer network_streets. We have to recalculate the new parts of the streets. But first we had to establish a new categorie of streets. You have digitezed 9

Author: Raymond Treier

now some arterialstreets. These streets have the number of categories 3. We must write these numbers (3) dierctly in the attribut table.

network_streets Edit Features Start Editing Write in the new segments of the streets in the attribut table under categories the number 3. Recalculate the field length (Calculate Geometry) Recalculate the field travel with the Field Calculator (Load the formula travel, explained on the page 3) Save Edits Stop Editing

Now we have to update the network database! Click in the toolbar of the Network Analyst the following symbol (Build Network Dataset)

The new vertices in the mainstreets are now visible.

Now we have samples of all categories of the streets. The great advantage is now that we can make visible these categories in the network database and therefore we can edit directly in a special categorie and we never had to write manually a number 1, 2 or 3 in the attribut table. Expanding the network is now very easy.

10

Author: Raymond Treier

network_streets Properties Symbology Categories Value Field categories . Add all values

11

Author: Raymond Treier

Now you can choose the template in the Window

Create Feature to develop


the network database.

12

Author: Raymond Treier

11

Restrictions: Sometimes streets can be closed. You can define Restrictions. Network Analyst finds out the best solution to avoid restrictions. You can define restrictions in the form of a point (Point Barriers), a line (Line Barriers) or a polygon (Polygon Barriers). The easiest way to demonstrate it, choose a polygon barrier. Click in the Network Analyst Window on Poygon Barriers (0) and define a poylgon where you want to make a restriction with the symbol Create Network Location Tool.

Before the restriction

After the restriction

Integration of OneWay Streets You can integrate OneWay Streets. Open the attribut table of the layer network_streets. Add a new field in the attribute table, named OneWay. Define the type of the field as text. Start the Editor and write manually in the field where you want to have a OneWay Street: T (To) T F or F (from)

12

means in the direction of the digitized street in the other direction

Speichern Sie die Tabelle mit SaveEdits und Stop Editing

13

Author: Raymond Treier

To make it work you had to add a new attribute in the network database.

13

Adding the new attribute for OneWay Streets Choose the catalog Window! network_streets_ND.nd Properties

Add a new attribute in the register Attribute

Name: Usage Typ: OK

OneWay Restriction

14

Author: Raymond Treier

Click OneWay Click Evaluators. Click on expression Open the expression field with the Symbol

This formula will automatically be filled in this way (because you have made a new field in the attribute table, called OneWay) Update the network database
14

(Build Network Dataset)

Testing OneWay Restrictions Choose an example where you can test the OneWay Restriction

15

Author: Raymond Treier

What did you learn in this lesson? Digitizing streets (with the help of a topograhic map) Getting vertices (in splitting the digitized street) Snapping on vertices Building a network database Defining Network attributes Calculating in attribut tables Routing Integrating Restrictions and OneWays in the Network Database

16

S-ar putea să vă placă și